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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x1c]
call fcn.004df200
lea eax, [esp + 0x20]
push 4
push eax
call fcn.004c3240
lea ecx, [esp + 0x2c]
push 4
push ecx
call fcn.004c3240
lea edx, [esp + 0x24]
push 4
push edx
call fcn.004c3240
lea eax, [esp + 0x30]
push 4
push eax
call fcn.004c3240
add esp, 0x20
lea ecx, [esp + 0x2c]
call fcn.0053ae20
xor esi, esi
push esi
push esi
lea ecx, [esp + 0x34]
call fcn.0050aab0
mov ebx, dword [ebp + 8]
push eax
push ebx
call dword [0x1018ef38]
test al, al
je 0x516534
lea ecx, [esp + 0x44]
call fcn.0053ce10
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.004c3240
add esp, 8
lea ecx, [esp + 0x44]
call fcn.0053d0e0
mov edx, dword [edi + 8]
push edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x3c], eax
call fcn.0053cdb0
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x30]
call fcn.0053aad0
mov edx, dword [eax + 4]
mov eax, dword [eax]
lea ecx, [esp + 0x44]
push ecx
push esi
push 0x40
push edx
push eax
lea ecx, [esp + 0xb4]
call fcn.0050ab00
mov ecx, eax
call fcn.0050aab0
push eax
push esi
lea ecx, [esp + 0xc4]
call fcn.0050aa80
mov ecx, eax
call fcn.0050aab0
push eax
mov ecx, edi
call fcn.005135d0
test eax, eax
je 0x516601
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x48]
call fcn.0053d000
mov ebx, eax
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x516324
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x10], esi
mov eax, dword [ebx]
cmp eax, esi
mov dword [esp + 0x10], eax
je 0x516336
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x78]
cmp eax, esi
je 0x51634a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x78], esi
lea ecx, [esp + 0x34]
call fcn.0053cde0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x74]
push edx
call eax
xor ebx, ebx
cmp dword [eax], esi
mov eax, dword [esp + 0x74]
sete bl
cmp eax, esi
je 0x51637e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x74], esi
cmp ebx, esi
je 0x516867
lea ecx, [esp + 0x88]
call fcn.005372a0
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x88]
push eax
call fcn.00537190
test eax, eax
je 0x516812
lea ecx, [esp + 0x8c]
push ecx
call fcn.005247f0
add esp, 4
test eax, eax
je 0x51665f
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x9c]
push 2
lea eax, [esp + 0x90]
push eax
push eax
lea eax, [esp + 0x34]
push eax
call edx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.0050aed0
mov edx, dword [edi + 8]
push edx
lea ecx, [esp + 0x44]
call fcn.0053cdb0
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x30]
call fcn.0053aad0
mov edx, dword [eax + 4]
mov eax, dword [eax]
lea ecx, [esp + 0x44]
push ecx
push esi
push 0x40
push edx
push eax
lea ecx, [esp + 0x90]
call fcn.0050ab00
mov ecx, eax
call fcn.0050aab0
push eax
push esi
lea ecx, [esp + 0xc4]
call fcn.0050aa80
mov ecx, eax
call fcn.0050aab0
push eax
mov ecx, edi
call fcn.005135d0
test eax, eax
je 0x5166b4
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x48]
call fcn.0053d000
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov ebx, dword [esp + 0x10]
call eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
mov ecx, ebx
mov dword [esp + 0x38], eax
call edx
mov ecx, dword [esp + 0x38]
cmp ecx, eax
je 0x516726
mov eax, dword [esp + 0x3c]
cmp eax, esi
je 0x5164a2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x3c], esi
lea ecx, [esp + 0x40]
call fcn.0053cde0
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x5164bf
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x5164d3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x6c]
cmp eax, esi
je 0x5164e7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x6c], esi
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x5164fb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0x44]
call fcn.00525460
lea ecx, [esp + 0x2c]
call fcn.0053aac0
lea ecx, [esp + 0x2c]
call fcn.0053ae20
push esi
push esi
lea ecx, [esp + 0x34]
call fcn.0050aab0
mov ebx, dword [ebp + 8]
push eax
push ebx
call dword [0x1018ef38]
test al, al
jne 0x516276
cmp dword [0x1018ed58], esi
je 0x516589
push 0x10082b00
push 0x10090900
push ebx
push 0x100908c4
push 0x10090884
lea ecx, [esp + 0x90]
call fcn.004d90d0
mov ecx, eax
call fcn.004d8000
mov ecx, eax
call fcn.004d8000
mov ecx, eax
call fcn.004d8020
mov ecx, eax
call fcn.004d8000
mov ecx, eax
call fcn.004d8000
lea ecx, [esp + 0x7c]
call fcn.004d7f10
push 0x7b
lea ecx, [esp + 0x20]
call fcn.004df220
lea ecx, [esp + 0x2c]
call fcn.0053aac0
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x5165b1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x5165c5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x5165d9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x5165ed
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x1c]
call fcn.004df230
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x7b
lea ecx, [esp + 0x20]
call fcn.004df220
lea ecx, [esp + 0x34]
call fcn.0053cde0
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x516629
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x6c]
cmp eax, esi
je 0x51663d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x6c], esi
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x516651
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0x44]
call fcn.00525460
jmp 0x516594
push 3
lea ecx, [esp + 0x20]
call fcn.004df220
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x51667e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x6c]
cmp eax, esi
je 0x516692
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x6c], esi
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x5166a6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0x44]
call fcn.00525460
jmp 0x516594
push 0x7b
lea ecx, [esp + 0x20]
call fcn.004df220
lea ecx, [esp + 0x40]
call fcn.0053cde0
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x5166dc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x5166f0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x6c]
cmp eax, esi
je 0x516704
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x6c], esi
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x516718
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0x44]
call fcn.00525460
jmp 0x516594
mov ecx, dword [esp + 0x14]
cmp ecx, esi
je 0x51673a
mov eax, dword [ecx]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 0x38]
push edx
call eax
mov eax, dword [esp + 0x3c]
cmp eax, esi
je 0x51674e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x3c], esi
lea ecx, [esp + 0x40]
call fcn.0053cde0
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x51676b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x51677f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x6c]
cmp eax, esi
je 0x516793
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x6c], esi
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x5167a7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0x44]
call fcn.00525460
lea ecx, [esp + 0x2c]
call fcn.0053aac0
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x5167cd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x5167e1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x5167f5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x51694f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], esi
jmp 0x51694f
push 0x7b
lea ecx, [esp + 0x20]
call fcn.004df220
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x516831
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x6c]
cmp eax, esi
je 0x516845
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x6c], esi
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x516859
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0x44]
call fcn.00525460
jmp 0x516594
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
test eax, eax
jne 0x5168b0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x38]
push edx
call eax
push eax
lea ecx, [esp + 0x14]
call fcn.0050afb0
lea ecx, [esp + 0x38]
call fcn.004e4310
mov ecx, dword [esp + 0x10]
cmp ecx, esi
je 0x516966
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
test eax, eax
je 0x516876
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x38]
call fcn.004dbf50
mov eax, dword [ebp + 0xc]
cmp eax, esi
mov edi, dword [esp + 0x34]
je 0x5168d5
mov edx, dword [edi]
mov eax, dword [eax]
mov edx, dword [edx + 0x78]
push eax
mov ecx, edi
call edx
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x5168e9
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x84]
mov ecx, edi
call eax
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x516910
mov esi, dword [edi]
push eax
lea ecx, [esp + 0x80]
add esi, 0x68
call fcn.0050aae0
mov ecx, eax
call fcn.0050aab0
mov edx, dword [esi]
push eax
mov ecx, edi
call edx
lea ecx, [esp + 0x34]
call fcn.004e4310
lea ecx, [esp + 0x10]
call fcn.004e4310
lea ecx, [esp + 0x44]
call fcn.0050bb50
lea ecx, [esp + 0x2c]
call fcn.0053aac0
lea ecx, [esp + 0x14]
call fcn.0050b4f0
lea ecx, [esp + 0x24]
call fcn.004e4310
lea ecx, [esp + 0x20]
call fcn.004e4310
lea ecx, [esp + 0x1c]
call fcn.004df230
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 3
lea ecx, [esp + 0x20]
call fcn.004df220
lea ecx, [esp + 0x10]
call fcn.004e4310
lea ecx, [esp + 0x44]
call fcn.0050bb50
lea ecx, [esp + 0x2c]
call fcn.0053aac0
lea ecx, [esp + 0x14]
call fcn.0050b4f0
lea ecx, [esp + 0x24]
call fcn.004e4310
lea ecx, [esp + 0x20]
call fcn.004e4310
lea ecx, [esp + 0x1c]
call fcn.004df230
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10