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

Disassembly:
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov ebx, ecx
lea eax, [esp + 0xb8]
lea ecx, [ebx + 0xe8]
push eax
call fcn.00528670
push 0xffffffffffffffff
lea ecx, [esp + 0x17]
lea esi, [ebx + 0xc4]
push ecx
mov ecx, esi
call fcn.004cbac0
test al, al
jne 0x51e76d
mov byte [esp + 0x13], al
jmp 0x51e776
add dword [esi + 0x10], 1
mov byte [esp + 0x13], 1
mov ecx, esi
call fcn.00539470
mov edi, dword [esp + 0xb8]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x51e7fb
mov edi, edi
lea edx, [esp + 0x14]
push 4
push edx
mov ebp, eax
call fcn.004c3240
add esp, 8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.0050d730
mov ecx, dword [esp + 0x14]
call fcn.0053b500
cmp eax, edi
je 0x51e7d1
mov ecx, dword [esp + 0x14]
call fcn.0053b570
cmp eax, edi
jne 0x51e7d9
push ebp
mov ecx, esi
call fcn.0050dbc0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x51e7f1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x51e790
xor ebp, ebp
cmp byte [esp + 0x13], 0
je 0x51e83b
add dword [esi + 0x10], 0xffffffff
jne 0x51e83b
push ebp
lea eax, [esi + 8]
push eax
mov dword [esi + 0x10], ebp
call dword [0x100820c4]
mov ecx, dword [esi + 0xc]
test ecx, ecx
lea eax, [esi + 0xc]
jle 0x51e834
push eax
call dword [0x100820a4]
mov edx, dword [esi + 0x14]
push ebp
push 1
push edx
call dword [0x100820c0]
mov edi, dword [esp + 0xb8]
lea eax, [esp + 0xb8]
push eax
lea ecx, [ebx + 0x130]
call fcn.00528670
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0xbc]
lea esi, [ebx + 0x154]
push edx
mov ecx, esi
call fcn.0050e6c0
test eax, eax
je 0x51e888
lea eax, [esp + 0xb8]
push eax
mov ecx, esi
call fcn.004cf3b0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004c68a0
add esp, 4
lea edx, [esp + 0x20]
push edx
lea ecx, [ebx + 0x58]
mov dword [esp + 0x24], edi
call fcn.00528670
cmp eax, ebp
je 0x51e8b0
push edi
call fcn.004c45c0
add esp, 4
mov esi, 1
jmp 0x51e9b1
lea eax, [esp + 0x28]
push eax
lea ecx, [ebx + 0x7c]
mov dword [esp + 0x2c], edi
call fcn.00528670
cmp eax, ebp
jne 0x51e89d
lea ecx, [esp + 0x34]
xor esi, esi
call fcn.0053ce10
lea ecx, [esp + 0x34]
push ecx
push ebp
push 0x40
push ebp
push edi
lea ecx, [esp + 0x78]
call fcn.0050aa80
mov ecx, eax
call fcn.0050aab0
push eax
mov ecx, ebx
call fcn.005135d0
test eax, eax
je 0x51e980
lea ecx, [esp + 0x34]
call fcn.0053d0e0
mov ecx, eax
call fcn.005370f0
test eax, eax
jne 0x51e980
mov ecx, dword [0x1018efa4]
lea edx, [esp + 0x2c]
push edx
mov edx, dword [ecx + 0xad8]
push 0x38
lea eax, [esp + 0x84]
push eax
mov eax, dword [edx + 0x24]
add ecx, 0xad8
push ebp
push edi
call eax
call eax
test eax, eax
jne 0x51e946
cmp dword [esp + 0x84], 1
jne 0x51e980
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x38]
call fcn.0053d000
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x48]
call eax
test eax, eax
je 0x51e970
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x4c]
push 1
call eax
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x51e980
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x5c]
cmp eax, ebp
je 0x51e994
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x5c], ebp
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x51e9a8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x3c], ebp
lea ecx, [esp + 0x34]
call fcn.00525460
lea eax, [esp + 0xb8]
push eax
lea ecx, [ebx + 0xe8]
call fcn.00528670
lea ecx, [esp + 0xb8]
push ecx
lea ecx, [ebx + 0x10c]
call fcn.0050df90
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 4