Function at 0x515c50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5f0bc4
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov eax, dword [0x667050]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov esi, dword [esp + 0xa8]
xor ebx, ebx
push esi
mov dword [esp + 0xa0], ebx
call fcn.004d7a10
add esp, 4
test al, al
je 0x515d21
mov edi, esi
call fcn.004d7e70
test al, al
jne 0x515d21
call dword [0x6103b0]
mov edi, dword [esp + 0xa4]
mov ebx, eax
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
push esi
push ebx
mov ecx, edi
call edx
test al, al
je 0x515ceb
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x84]
mov edx, dword [edi]
mov edx, dword [edx + 0x24]
push ecx
mov ecx, dword [eax + 0x80]
push ecx
push eax
mov ecx, edi
call edx
jmp 0x516337
mov eax, dword [edi]
mov edx, dword [eax + 0x34]
push ebx
push esi
push 0x10000004
mov ecx, edi
call edx
test al, al
mov dword [esp + 0x9c], 0xffffffff
lea eax, [esp + 0xb0]
jne 0x516349
call fcn.0042e290
xor al, al
jmp 0x516350
mov edi, dword [esp + 0xac]
mov byte [esp + 0x9c], 1
mov eax, dword [edi + 0x60]
or eax, 0x8000000
cmp dword [esi + 0x18], 8
jb 0x515d43
mov ecx, dword [esi + 4]
jmp 0x515d46
lea ecx, [esi + 4]
push ebx
push eax
push 2
push ebx
push 1
push 0x40000000
push ecx
call dword [0x6103ac]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x515db2
call dword [0x6103b0]
mov ebx, dword [esp + 0xa4]
mov ebp, eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x30]
push esi
push ebp
mov ecx, ebx
call edx
test al, al
je 0x515d9d
mov ecx, dword [edi + 0x84]
mov edx, dword [edi + 0x80]
mov eax, dword [ebx]
mov eax, dword [eax + 0x24]
push ecx
push edx
push edi
mov ecx, ebx
call eax
jmp 0x516337
mov edx, dword [ebx]
mov eax, dword [edx + 0x34]
push ebp
push esi
push 0x10000001
mov ecx, ebx
call eax
jmp 0x515cfb
push ebx
push ebx
push ebx
lea esi, [esp + 0x30]
lea eax, [esp + 0x28]
call fcn.0051ea00
push 0x80000
mov dword [esp + 0x68], 0x6124ac
mov dword [esp + 0x74], ebx
call fcn.005e693a
add esp, 4
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], 0x80000
mov ebp, dword [esp + 0xa4]
mov byte [esp + 0x9c], 2
mov ecx, dword [edi + 0x80]
mov eax, dword [edi + 0x68]
mov edx, dword [edi + 0x84]
push 1
mov dword [esp + 0x50], ecx
mov ecx, dword [edi + 0x6c]
push ebx
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0xb4]
push ebx
lea esi, [esp + 0x68]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.0051ea00
mov esi, dword [esp + 0x50]
cmp esi, ebx
mov ecx, dword [esp + 0x4c]
ja 0x515e5e
cmp ecx, ebx
jbe 0x51626f
nop
cmp esi, ebx
jb 0x515e69
ja 0x515e5e
cmp ecx, 0x80000
jbe 0x515e69
mov ecx, 0x80000
mov dword [esp + 0x40], ebx
jmp 0x515e6d
mov dword [esp + 0x40], esi
cmp dword [esp + 0x6c], ebx
mov eax, dword [ebp + 0xb4]
je 0x516093
cmp dword [eax], 0xffffffff
je 0x516093
push ebx
lea edx, [esp + 0x24]
push edx
push ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x2c], ebx
mov edx, dword [eax]
push ecx
push edx
call dword [0x610284]
test eax, eax
je 0x516093
mov eax, dword [esp + 0x20]
cmp eax, ebx
seta cl
cmp cl, bl
je 0x516093
sub dword [esp + 0x4c], eax
mov al, byte [ebp + 0x100]
sbb esi, ebx
test al, al
mov dword [esp + 0x50], esi
jne 0x516117
mov eax, dword [edi + 0x80]
sub eax, dword [esp + 0x4c]
mov ecx, dword [edi + 0x84]
mov edx, dword [ebp]
mov edx, dword [edx + 0x24]
sbb ecx, esi
push ecx
push eax
push edi
mov ecx, ebp
call edx
cmp dword [edi + 0x70], ebx
mov ebp, dword [esp + 0xb0]
mov eax, dword [esp + 0x20]
jne 0x515f6b
mov edx, dword [esp + 0x6c]
push ebx
lea ecx, [esp + 0x30]
push ecx
push eax
mov esi, eax
mov eax, dword [esp + 0x28]
push edx
push eax
call dword [0x610298]
test eax, eax
je 0x515f26
cmp esi, dword [esp + 0x2c]
je 0x51606f
mov edi, dword [esp + 0xa4]
mov esi, dword [edi]
add esi, 0x34
call dword [0x6103b0]
mov edx, dword [esp + 0xa8]
push eax
mov eax, dword [esi]
push edx
push 0x10000003
mov ecx, edi
call eax
test al, al
lea ecx, [esp + 0x64]
je 0x51614d
call fcn.0040eb40
lea esi, [esp + 0x1c]
call fcn.0051e8c0
jmp 0x516337
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], ebx
jbe 0x51606f
lea ecx, [ecx]
mov ecx, dword [esp + 0xa4]
mov eax, dword [ecx + 0x104]
cmp eax, ebx
je 0x515f9f
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x515f9f
push eax
call fcn.005e691c
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
mov byte [esp + 0x30], bl
call eax
xor ecx, ecx
cmp dword [esp + 0x58], ecx
ja 0x515fc2
jb 0x515fbd
cmp dword [esp + 0x54], eax
ja 0x515fc2
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x30]
mov edx, dword [ebp]
mov edx, dword [edx + 8]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x74]
add ecx, esi
push eax
push ecx
mov ecx, ebp
call edx
test al, al
je 0x516179
mov eax, dword [esp + 0x34]
sub dword [esp + 0x24], eax
add esi, eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x10]
mov ecx, ebp
call edx
test eax, eax
jbe 0x516065
mov dword [esp + 0x38], ebx
mov eax, dword [ebp]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebp
call edx
cmp eax, ebx
je 0x51605b
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
jbe 0x51605b
sub dword [esp + 0x54], ecx
push ebx
lea edx, [esp + 0x40]
sbb dword [esp + 0x5c], ebx
push edx
push ecx
push eax
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x50], ebx
mov edi, ecx
call dword [0x610298]
test eax, eax
je 0x516217
cmp edi, dword [esp + 0x3c]
jne 0x516217
mov edi, dword [esp + 0xac]
mov edx, dword [ebp]
mov eax, dword [edx + 0x1c]
mov ecx, ebp
call eax
cmp dword [esp + 0x24], ebx
ja 0x515f80
cmp dword [esp + 0x50], ebx
ja 0x51607f
cmp dword [esp + 0x4c], ebx
jbe 0x516276
mov ebp, dword [esp + 0xa4]
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
jmp 0x515e50
push 0x6111d4
lea ecx, [esp + 0x78]
call dword [0x610498]
mov byte [esp + 0x9c], 3
mov esi, dword [ebp]
add esi, 0x34
call dword [0x6103b0]
mov edx, dword [esi]
push eax
lea ecx, [esp + 0x78]
push ecx
push 0x10000002
mov ecx, ebp
call edx
lea ecx, [esp + 0x74]
mov byte [esp + 0x1b], al
mov byte [esp + 0x9c], 2
call dword [0x6105a0]
lea ecx, [esp + 0x64]
call fcn.0040eb40
lea esi, [esp + 0x1c]
call fcn.0051e8c0
lea eax, [esp + 0xb0]
mov dword [esp + 0x9c], 0xffffffff
call fcn.0042e290
cmp byte [esp + 0x1b], bl
jne 0x51634e
xor al, al
jmp 0x516350
mov eax, dword [esp + 0x6c]
push eax
call fcn.005e6a6c
mov ecx, dword [esp + 0x20]
add esp, 4
push ecx
call dword [0x6103cc]
lea eax, [esp + 0xb0]
mov dword [esp + 0x9c], 0xffffffff
call fcn.0042e290
xor al, al
jmp 0x516350
call fcn.0040eb40
lea esi, [esp + 0x1c]
call fcn.0051e8c0
lea eax, [esp + 0xb0]
mov dword [esp + 0x9c], 0xffffffff
call fcn.0042e290
xor al, al
jmp 0x516350
mov ecx, dword [esp + 0xa4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
xor eax, eax
sub esi, dword [esp + 0x4c]
sbb eax, dword [esp + 0x50]
add esi, dword [edi + 0x80]
adc eax, dword [edi + 0x84]
add esi, dword [esp + 0x5c]
adc eax, dword [esp + 0x60]
push eax
push esi
push 0x30000003
call edx
mov eax, dword [esp + 0x6c]
push eax
call fcn.005e6a6c
mov ecx, dword [esp + 0x20]
add esp, 4
push ecx
call dword [0x6103cc]
mov dword [esp + 0x9c], 0xffffffff
mov esi, dword [esp + 0xb4]
cmp esi, ebx
je 0x515d1a
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x515d1a
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x515d1a
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor al, al
jmp 0x516350
mov edi, dword [esp + 0xa4]
mov esi, dword [edi]
add esi, 0x34
call dword [0x6103b0]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0xac]
push eax
push 0x10000003
mov ecx, edi
call edx
test al, al
je 0x516258
mov eax, dword [esp + 0x6c]
push eax
call fcn.005e6a6c
mov ecx, dword [esp + 0x20]
add esp, 4
push ecx
jmp 0x516331
mov edx, dword [esp + 0x6c]
push edx
call fcn.005e6a6c
mov eax, dword [esp + 0x20]
add esp, 4
push eax
jmp 0x516129
mov ebp, dword [esp + 0xb0]
cmp dword [edi + 0x70], ebx
je 0x5162f4
jmp 0x516280
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x10]
mov ecx, ebp
call eax
test eax, eax
jbe 0x5162dc
mov dword [esp + 0x44], ebx
mov edx, dword [ebp]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x44]
push eax
mov ecx, ebp
call edx
cmp eax, ebx
je 0x5162dc
mov ecx, dword [esp + 0x44]
cmp ecx, ebx
jbe 0x5162dc
lea edx, [esp + 0x1c]
mov edi, ecx
push edx
lea esi, [esp + 0x4c]
mov ecx, eax
mov dword [esp + 0x4c], ebx
call fcn.0051e960
test al, al
je 0x51636c
mov edi, dword [esp + 0xac]
mov eax, dword [ebp]
mov edx, dword [eax + 0x10]
mov ecx, ebp
call edx
test eax, eax
ja 0x516280
mov eax, dword [ebp]
mov edx, dword [eax + 0x1c]
mov ecx, ebp
call edx
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 0x58]
mov edx, dword [edi + 0x54]
push eax
mov eax, dword [edi + 0x50]
push ecx
mov ecx, dword [edi + 0x4c]
push edx
mov edx, dword [edi + 0x48]
push eax
push ecx
push edx
lea eax, [esp + 0x34]
call fcn.0051ea80
lea esi, [esp + 0x1c]
call fcn.0051e990
lea ecx, [esp + 0x64]
call fcn.0040eb40
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x516337
push eax
call dword [0x6103cc]
mov dword [esp + 0x9c], 0xffffffff
lea eax, [esp + 0xb0]
call fcn.0042e290
mov al, 1
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 0x14
mov edi, dword [esp + 0xa4]
mov esi, dword [edi]
add esi, 0x34
call dword [0x6103b0]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0xac]
push eax
push 0x10000003
mov ecx, edi
call edx
test al, al
lea ecx, [esp + 0x64]
jne 0x515f58
call fcn.0040eb40
lea esi, [esp + 0x1c]
call fcn.0051e8c0
jmp 0x51612f