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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edi
mov eax, dword [edi + 8]
mov dword [ebp - 4], eax
test al, al
jns 0x51e4c9
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp eax, dword [ecx]
jb 0x51e4a8
push eax
call fcn.00473ee0
mov esi, dword [edi + 0x38]
mov edi, dword [edi + 0x3c]
push eax
push 9
call fcn.00470d50
add esp, 8
mov dword [eax + 4], edi
lea ebx, [eax + 8]
mov edi, dword [ebp - 8]
mov dword [eax], esi
mov eax, dword [ebp - 4]
jmp 0x51e4cc
mov ebx, dword [ebp + 8]
mov dword [ebp + 8], ebx
test eax, 0x100
je 0x51e506
mov eax, dword [ebp + 0xc]
cmp ebx, dword [eax]
jb 0x51e4e7
push ebx
mov ecx, eax
call fcn.00473ee0
mov ebx, eax
mov esi, dword [edi + 0x40]
mov edi, dword [edi + 0x44]
push ebx
push 0x11
call fcn.00470d50
add esp, 8
lea ebx, [eax + 8]
mov dword [eax], esi
mov dword [eax + 4], edi
mov eax, dword [ebp - 4]
mov dword [ebp + 8], ebx
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 0xc]
test al, 1
je 0x51e529
mov eax, dword [esi + 0x1c]
mov ecx, edi
push ebx
and eax, 0xfffffffe
push eax
push 3
call fcn.004c94f0
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [ebp + 8], ebx
test eax, 0x10000000
je 0x51e562
cmp ebx, dword [edi]
jb 0x51e53e
push ebx
mov ecx, edi
call fcn.00473ee0
mov ebx, eax
mov esi, dword [esi + 0xa0]
push ebx
push 0x20
call fcn.00470d50
push eax
mov eax, esi
cdq
push edx
push eax
call fcn.00470ec0
mov ebx, eax
add esp, 0x14
mov eax, dword [ebp - 4]
mov dword [ebp + 8], ebx
test eax, 0x200
je 0x51e597
cmp ebx, dword [edi]
jb 0x51e577
push ebx
mov ecx, edi
call fcn.00473ee0
mov ebx, eax
mov esi, dword [ebp - 8]
push ebx
push 0x28
mov esi, dword [esi + 0x48]
call fcn.00470d50
push eax
push esi
call fcn.00470d50
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp - 4]
mov dword [ebp + 8], ebx
mov esi, dword [ebp - 8]
test al, 2
je 0x51e5b7
mov eax, dword [esi + 0x20]
mov ecx, edi
push ebx
and eax, 0xfffffffe
push eax
push 6
call fcn.004c94f0
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [ebp + 8], ebx
test al, 4
je 0x51e5d4
mov eax, dword [esi + 0x24]
mov ecx, edi
push ebx
and eax, 0xfffffffe
push eax
push 7
call fcn.004c94f0
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [ebp + 8], ebx
test eax, 0x400
je 0x51e606
cmp ebx, dword [edi]
jb 0x51e5e9
push ebx
mov ecx, edi
call fcn.00473ee0
mov ebx, eax
mov esi, dword [esi + 0x4c]
push ebx
push 0x40
call fcn.00470d50
push eax
push esi
call fcn.00470d50
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp - 4]
mov dword [ebp + 8], ebx
test eax, 0x800
je 0x51e63b
cmp ebx, dword [edi]
jb 0x51e61b
push ebx
mov ecx, edi
call fcn.00473ee0
mov ebx, eax
mov esi, dword [ebp - 8]
push ebx
push 0x48
mov esi, dword [esi + 0x50]
call fcn.00470d50
push eax
push esi
call fcn.00470d50
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp - 4]
mov dword [ebp + 8], ebx
test eax, 0x1000
je 0x51e674
cmp ebx, dword [edi]
jb 0x51e650
push ebx
mov ecx, edi
call fcn.00473ee0
mov ebx, eax
mov eax, dword [ebp - 8]
push ebx
push 0x50
mov esi, dword [eax + 0x54]
call fcn.00470d50
push eax
mov eax, esi
cdq
push edx
push eax
call fcn.00470ec0
mov ebx, eax
add esp, 0x14
mov eax, dword [ebp - 4]
mov dword [ebp + 8], ebx
test eax, 0x2000
je 0x51e6ab
cmp ebx, dword [edi]
jb 0x51e689
push ebx
mov ecx, edi
call fcn.00473ee0
mov ebx, eax
mov eax, dword [ebp - 8]
push ebx
push 0x59
mov esi, dword [eax + 0x58]
mov edi, dword [eax + 0x5c]
call fcn.00470d50
add esp, 8
lea ebx, [eax + 8]
mov dword [eax], esi
mov dword [eax + 4], edi
mov eax, dword [ebp - 4]
mov dword [ebp + 8], ebx
test eax, 0x4000
je 0x51e6e5
mov eax, dword [ebp + 0xc]
cmp ebx, dword [eax]
jb 0x51e6c3
push ebx
mov ecx, eax
call fcn.00473ee0
mov ebx, eax
mov eax, dword [ebp - 8]
push ebx
push 0x61
mov esi, dword [eax + 0x60]
mov edi, dword [eax + 0x64]
call fcn.00470d50
add esp, 8
lea ebx, [eax + 8]
mov dword [eax], esi
mov dword [eax + 4], edi
mov eax, dword [ebp - 4]
mov dword [ebp + 8], ebx
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 0xc]
test al, 8
je 0x51e708
mov eax, dword [esi + 0x28]
mov ecx, edi
push ebx
and eax, 0xfffffffe
push eax
push 0xd
call fcn.004c94f0
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [ebp + 8], ebx
test al, 0x10
je 0x51e725
mov eax, dword [esi + 0x2c]
mov ecx, edi
push ebx
and eax, 0xfffffffe
push eax
push 0xe
call fcn.004c94f0
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [ebp + 8], ebx
test al, 0x40
je 0x51e760
cmp ebx, dword [edi]
jb 0x51e737
push ebx
mov ecx, edi
call fcn.00473ee0
mov ebx, eax
mov esi, dword [esi + 0x34]
push ebx
push 0x7a
call fcn.00470d50
mov edx, dword [esi + 0xc]
push eax
push edx
call fcn.00470d50
add esp, 0x10
mov ecx, esi
push edi
push eax
call fcn.0051ccf0
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [ebp + 8], ebx
test eax, 0x8000
je 0x51e7a4
cmp ebx, dword [edi]
jb 0x51e775
push ebx
mov ecx, edi
call fcn.00473ee0
jmp 0x51e778
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 8]
push eax
push 0x80
mov bl, byte [esi + 0x68]
call fcn.00470d50
push eax
xor eax, eax
test bl, bl
setne al
push eax
call fcn.00470d50
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp - 4]
mov dword [ebp + 8], ebx
jmp 0x51e7a7
mov esi, dword [ebp - 8]
test eax, 0x10000
je 0x51e7e3
cmp ebx, dword [edi]
jb 0x51e7bc
push ebx
mov ecx, edi
call fcn.00473ee0
jmp 0x51e7bf
mov eax, dword [ebp + 8]
mov bl, byte [esi + 0x69]
push eax
push 0x88
call fcn.00470d50
push eax
xor eax, eax
test bl, bl
setne al
push eax
call fcn.00470d50
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp - 4]
test eax, 0x20000
je 0x51e815
cmp ebx, dword [edi]
jb 0x51e7f8
push ebx
mov ecx, edi
call fcn.00473ee0
mov ebx, eax
mov esi, dword [esi + 0x6c]
push ebx
push 0x90
call fcn.00470d50
push eax
push esi
call fcn.00470d50
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp - 4]
test eax, 0x40000
je 0x51e84a
cmp ebx, dword [edi]
jb 0x51e82a
push ebx
mov ecx, edi
call fcn.00473ee0
mov ebx, eax
mov eax, dword [ebp - 8]
push ebx
push 0x98
mov esi, dword [eax + 0x70]
call fcn.00470d50
push eax
push esi
call fcn.00470d50
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp - 4]
test eax, 0x80000
je 0x51e87f
cmp ebx, dword [edi]
jb 0x51e85f
push ebx
mov ecx, edi
call fcn.00473ee0
mov ebx, eax
mov eax, dword [ebp - 8]
push ebx
push 0xa0
mov esi, dword [eax + 0x74]
call fcn.00470d50
push eax
push esi
call fcn.00470d50
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp - 4]
test eax, 0x100000
je 0x51e8b4
cmp ebx, dword [edi]
jb 0x51e894
push ebx
mov ecx, edi
call fcn.00473ee0
mov ebx, eax
mov eax, dword [ebp - 8]
push ebx
push 0xa8
mov esi, dword [eax + 0x78]
call fcn.00470d50
push eax
push esi
call fcn.00470d50
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp - 4]
test eax, 0x200000
je 0x51e8e9
cmp ebx, dword [edi]
jb 0x51e8c9
push ebx
mov ecx, edi
call fcn.00473ee0
mov ebx, eax
mov eax, dword [ebp - 8]
push ebx
push 0xb0
mov esi, dword [eax + 0x7c]
call fcn.00470d50
push eax
push esi
call fcn.00470d50
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp - 4]
test eax, 0x400000
je 0x51e926
cmp ebx, dword [edi]
jb 0x51e8fe
push ebx
mov ecx, edi
call fcn.00473ee0
mov ebx, eax
mov eax, dword [ebp - 8]
push ebx
push 0xb9
mov esi, dword [eax + 0x80]
mov edi, dword [eax + 0x84]
call fcn.00470d50
add esp, 8
mov dword [eax], esi
lea ebx, [eax + 8]
mov dword [eax + 4], edi
mov eax, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
test eax, 0x1000000
je 0x51e961
cmp ebx, dword [edi]
jb 0x51e93e
push ebx
mov ecx, edi
call fcn.00473ee0
mov ebx, eax
mov eax, dword [ebp - 8]
push ebx
push 0xc0
mov esi, dword [eax + 0x90]
call fcn.00470d50
push eax
push esi
call fcn.00470d50
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp - 4]
test eax, 0x800000
je 0x51e99e
cmp ebx, dword [edi]
jb 0x51e976
push ebx
mov ecx, edi
call fcn.00473ee0
mov ebx, eax
mov eax, dword [ebp - 8]
push ebx
push 0xc9
mov esi, dword [eax + 0x88]
mov edi, dword [eax + 0x8c]
call fcn.00470d50
add esp, 8
mov dword [eax], esi
lea ebx, [eax + 8]
mov dword [eax + 4], edi
mov eax, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
test eax, 0x2000000
je 0x51e9d9
cmp ebx, dword [edi]
jb 0x51e9b6
push ebx
mov ecx, edi
call fcn.00473ee0
mov ebx, eax
mov eax, dword [ebp - 8]
push ebx
push 0xd0
mov esi, dword [eax + 0x94]
call fcn.00470d50
push eax
push esi
call fcn.00470d50
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp - 4]
test eax, 0x4000000
je 0x51ea0e
cmp ebx, dword [edi]
jb 0x51e9ee
push ebx
mov ecx, edi
call fcn.00473ee0
mov ebx, eax
mov eax, dword [ebp - 8]
push ebx
push 0xd8
mov esi, dword [eax + 0x98]
call fcn.00470d50
push eax
push esi
call fcn.00470d50
add esp, 0x10
mov ebx, eax
mov esi, dword [ebp - 8]
lea eax, [esi + 0x10]
mov ecx, eax
mov dword [ebp + 8], eax
call fcn.00454230
mov ecx, eax
xor eax, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0xc], eax
test ecx, ecx
jle 0x51ea72
lea esp, [esp]
cmp ebx, dword [edi]
jb 0x51ea41
push ebx
mov ecx, edi
call fcn.00473ee0
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
call fcn.0046f2d0
push ebx
push 0xe0
mov esi, dword [eax]
call fcn.00470d50
push eax
push esi
call fcn.00470d50
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
cmp eax, dword [ebp - 0xc]
jl 0x51ea30
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
test eax, 0x8000000
je 0x51eaaa
cmp ebx, dword [edi]
jb 0x51ea8a
push ebx
mov ecx, edi
call fcn.00473ee0
mov ebx, eax
mov esi, dword [esi + 0x9c]
push ebx
push 0xe8
call fcn.00470d50
push eax
push esi
call fcn.00470d50
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp - 4]
test al, 0x20
je 0x51eac4
mov eax, dword [ebp - 8]
mov ecx, edi
push ebx
mov eax, dword [eax + 0x30]
and eax, 0xfffffffe
push eax
push 0x1e
call fcn.004c94f0
mov ebx, eax
mov eax, dword [ebp - 8]
test byte [eax + 4], 1
je 0x51eaea
mov eax, dword [eax + 4]
and eax, 0xfffffffc
push edi
add eax, 4
push ebx
push eax
call fcn.00590020
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8