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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x652018]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], edi
cmp byte [edi + 0x31], 0
jne 0x51ff5c
call 0x400b8a
mov ecx, eax
call 0x3dd2ea
test al, al
jne 0x51ff5c
mov ecx, ebx
mov byte [esp + 0x17], al
mov dword [esp + 0x34], 0
call 0x400b8a
mov ecx, eax
call 0x3dad4a
push 0
push 0
mov esi, eax
add edi, 0x34
push 0xffffffffffffffff
lea eax, [esp + 0x40]
mov dword [esp + 0x24], edi
push eax
lea eax, [esp + 0x27]
mov ecx, ebx
push eax
push edi
call 0x400b8a
push eax
push 0
push 0x41002
push 0
push esi
mov esi, dword [esp + 0x4c]
mov ecx, ebx
push dword [esi + 0x28]
call 0x3fcc9a
mov ecx, eax
call 0x400dda
cmp byte [esp + 0x17], 0
mov dword [esp + 0x28], eax
je 0x51f783
mov eax, dword [ebx + 0x13c]
test eax, eax
je 0x51f759
mov eax, dword [eax + 0x28]
test eax, eax
jne 0x51f767
mov eax, dword [ebx + 0x138]
test eax, eax
je 0x51ff5c
or word [eax + 2], 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call 0x59f19b
mov esp, ebp
pop ebp
ret 4
test eax, eax
je 0x51ff44
cmp byte [eax], 0xc
jne 0x51ff44
test byte [eax + 0x90], 4
mov esi, dword [eax + 0x8c]
mov dword [esp + 0x24], esi
je 0x51f7fc
mov eax, dword [eax + 0x88]
mov dword [esp + 0x38], eax
test eax, eax
je 0x51f7d8
mov ecx, ebx
call 0x400b8a
mov ecx, dword [esp + 0x38]
mov esi, eax
call 0x3e9c8a
cmp eax, esi
jne 0x51f7d8
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
jmp 0x51f8f6
push edi
push 0x754d
mov ecx, ebx
call fcn.00421dba
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call 0x59f19b
mov esp, ebp
pop ebp
ret 4
test esi, esi
je 0x51f7d8
mov ecx, ebx
call 0x400b8a
push eax
push dword [esp + 0x38]
mov ecx, ebx
push esi
call 0x3fc29a
test al, al
je 0x51f7d8
mov ecx, dword [esp + 0x28]
call 0x3e909a
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x51ff5c
cmp byte [ecx], 0x29
jne 0x51f863
mov esi, dword [esp + 0x34]
test esi, esi
je 0x51f863
sub esp, 0x10
lea edx, [ebx + 0x6c]
mov eax, esp
mov byte [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], esi
mov dword [eax + 0xc], 0
call fcn.0041f37a
mov ecx, eax
mov dword [esp + 0x10], eax
mov byte [esp + 0xf], 0
call 0x3c4cda
mov ecx, eax
call 0x3dad4a
mov ecx, dword [ebx + 0xc]
mov edi, eax
push 0
push 0
push 0xffffffffffffffff
mov ecx, dword [ecx + 0xc]
lea eax, [esp + 0x1b]
push 0
push eax
push dword [esp + 0x2c]
mov esi, dword [ecx + 0x2a8]
mov ecx, ebx
call 0x400b8a
push eax
push 0
push 0x40002
push 0
push edi
push esi
mov ecx, ebx
call 0x3fcc9a
mov ecx, eax
call 0x400dda
mov esi, eax
mov dword [esp + 0x38], esi
test esi, esi
je 0x51ff06
mov ecx, esi
call 0x3e9d7a
test al, al
je 0x51ff06
cmp byte [esp + 0xf], 0
jne 0x51ff26
push dword [ebx + 0x10]
mov ecx, dword [esp + 0x14]
lea eax, [ebx + 0x6c]
push eax
mov edx, esi
call fcn.0042195a
mov edi, dword [esp + 0x18]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x28]
xor esi, esi
mov dword [esp + 0x10], esi
test byte [eax + 1], 8
jne 0x51f92c
mov esi, dword [ebx]
mov ecx, ebx
push 0
push 1
push 0
call 0x400b8a
push eax
push edi
mov ecx, ebx
call dword [esi + 0x28]
mov esi, eax
mov dword [esp + 0x10], esi
test byte [esi + 2], 1
jne 0x51ff26
mov eax, dword [esp + 0x38]
cmp eax, dword [ebx + 0x14c]
jne 0x51f98e
mov ecx, eax
call 0x3fbb0a
test byte [eax + 1], 8
jne 0x51f969
test esi, esi
je 0x51f969
cmp word [esi], 0x5c
jne 0x51f98e
mov ecx, dword [esi + 0x28]
movzx eax, byte [ecx]
test byte [eax + eax*2 + 0x405210], 0x80
je 0x51f98e
mov eax, dword [ecx + 0x5c]
shr eax, 8
test al, 1
je 0x51f98e
mov eax, dword [ebx + 0xc]
mov ecx, ebx
mov esi, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
push dword [esi + 0x28]
push dword [eax + 0x93c]
lea eax, [esi + 4]
push eax
push 0xa40e
call fcn.0042243a
jmp 0x51f992
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
test ecx, ecx
je 0x51fe2d
push 0
push 0
push dword [esp + 0x3c]
push eax
push 0
push ecx
push edi
mov ecx, ebx
call fcn.00462a8a
mov ecx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], ecx
test byte [eax + 0x90], 8
je 0x51fbfe
mov eax, dword [ebx + 0x14]
lea ecx, [esi + 4]
mov dword [esp + 0x90], eax
mov eax, dword [ecx]
mov dword [esp + 0x94], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x98], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x9c], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xa0], eax
mov byte [esp + 0x15], 0
mov ecx, dword [ecx + 0x50]
call 0x3dc92a
mov ecx, eax
call 0x3c4cda
mov ecx, eax
call 0x3dad4a
push 0
push 0
push 0xffffffffffffffff
mov esi, eax
mov ecx, ebx
push 0
lea eax, [esp + 0x25]
push eax
push edi
call 0x400b8a
push eax
push 0
push 0x40002
push 0
push esi
push ecx
mov ecx, dword [ebx + 0xc]
push 0x42b008
call 0x3cc51a
add esp, 4
mov ecx, ebx
push eax
call 0x3fcc9a
mov ecx, eax
call 0x400dda
mov dword [esp + 0x10], eax
test eax, eax
je 0x51ff26
cmp byte [esp + 0x15], 0
jne 0x51ff26
mov esi, dword [esp + 0x24]
mov ecx, dword [esi + 0x50]
call 0x3dc92a
mov edx, dword [esp + 0x10]
lea ecx, [ebx + 0x6c]
push 0
push 0x20
push dword [ebx + 0x10]
push ecx
mov ecx, eax
call fcn.0042195a
push eax
push 0
push 0
push dword [esp + 0x24]
mov ecx, ebx
push edi
call fcn.00462a8a
mov dword [esp + 0x10], eax
test byte [eax + 2], 1
jne 0x51ff26
push dword [esi + 4]
lea eax, [esp + 0x94]
push 1
push eax
call fcn.004e2cfa
mov edx, dword [ebx + 0x14]
add esp, 0xc
mov ecx, 0x20
mov esi, eax
call 0x3bcc2a
mov edi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [edi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 0xc], ecx
mov ecx, dword [eax + 8]
mov dword [edi + 0x10], ecx
mov ecx, 0x44
mov eax, dword [eax + 0xc]
mov dword [edi + 0x14], eax
mov edx, dword [ebx + 0x14]
call 0x3bcc2a
push dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov dword [edi], eax
push 0
push 0
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
push 0
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
push edi
mov dword [eax + 0xc], ecx
mov ecx, ebx
mov eax, dword [edi]
push 0
push dword [esp + 0x28]
push dword [esp + 0x38]
mov dword [eax + 0x10], esi
call fcn.004674ca
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x16], 0
mov ecx, dword [ecx + 0x50]
call 0x3dc92a
mov ecx, eax
call 0x3c4cda
mov ecx, eax
call 0x3dad4a
mov ecx, dword [ebx + 0xc]
mov edi, eax
push 0
push 0
push 0xffffffffffffffff
mov ecx, dword [ecx + 0xc]
lea eax, [esp + 0x22]
push 0
push eax
push dword [esp + 0x2c]
mov esi, dword [ecx + 0x20c]
mov ecx, ebx
call 0x400b8a
push eax
push 0
push 0x40002
push 0
push edi
push esi
mov ecx, ebx
call 0x3fcc9a
mov ecx, eax
call 0x400dda
cmp byte [esp + 0x16], 0
mov esi, eax
jne 0x51ff26
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x50]
call 0x3dc92a
push 0
push 0
push dword [ebx + 0x10]
lea ecx, [ebx + 0x6c]
mov edx, esi
push ecx
mov ecx, eax
call fcn.0042195a
push eax
push dword [esp + 0x28]
mov ecx, ebx
push 0
push esi
push dword [esp + 0x30]
call fcn.00462a8a
mov ecx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], ecx
test byte [ecx + 2], 1
jne 0x51ff26
cmp byte [ebx + 0x109], 0
je 0x51fc2e
push 0
push 1
push 0
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x40]
push eax
push ecx
mov ecx, ebx
call fcn.0047271a
jmp 0x51fd02
lea eax, [esp + 0x90]
push eax
call fcn.004346fa
push 0x30
mov ecx, dword [eax + 8]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x30]
add ecx, 0x24
movzx esi, word [eax + 0x20]
call fcn.0053ac4a
mov edx, eax
mov eax, 0x1e
lea ecx, [edx + 0x18]
mov dword [esp + 0x3c], edx
mov dword [edx + 4], edi
mov dword [edx + 8], ebx
mov ebx, dword [esp + 0x2c]
mov word [edx], ax
mov eax, dword [esp + 0x1c]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x10]
mov dword [edx + 0x10], eax
mov word [edx + 0x20], si
mov eax, dword [ebx + 0x1d8]
mov dword [edx + 0x24], eax
mov eax, dword [ebx + 0x12c]
mov dword [edx + 0x14], eax
mov dword [ecx], 0
mov eax, dword [ebx + 0x10c]
mov dword [edx + 0x1c], eax
mov eax, dword [ebx + 0x128]
mov dword [eax], edx
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x34]
mov dword [ebx + 0x128], ecx
mov ecx, ebx
mov dword [ebx + 0x12c], edx
call fcn.00427b9a
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov dword [ecx + 0x28], eax
mov ecx, dword [esi + 0x50]
call 0x3dc92a
push 0
push dword [esp + 0x1c]
mov ecx, ebx
push 0
push eax
push esi
call fcn.004733ba
mov dword [esp + 0x10], eax
mov dword [esp + 0x44], eax
mov esi, dword [esp + 0x20]
lea edi, [esp + 0x48]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x20]
mov ecx, ebx
push 1
mov dword [esp + 0x78], 0
mov byte [esp + 0x7c], 1
mov eax, dword [esi + 4]
mov dword [esp + 0x80], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x84], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x88], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x8c], eax
mov eax, 0xfffe
mov word [esp + 0x6c], ax
lea eax, [esp + 0x4c]
push eax
push 1
mov dword [esp + 0x98], 0
call fcn.005217ba
mov ecx, 0xc000
push 1
or word [eax + 2], cx
lea eax, [esp + 0x4c]
push eax
push 2
mov ecx, ebx
call fcn.005217ba
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
lea ecx, [eax + 4]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x51fdba
push ecx
push 0x65e308
push 0x2c
mov ecx, ebx
call fcn.0042862a
mov edi, eax
or word [edi + 2], 1
jmp 0x51fdf8
push 0x24
lea ecx, [ebx + 0x24]
call fcn.0053ac4a
mov ecx, dword [esp + 0x2c]
mov edi, eax
mov eax, 0x54
mov word [edi], ax
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov eax, dword [ecx + 4]
mov dword [edi + 8], eax
mov eax, dword [ecx + 8]
mov dword [edi + 0xc], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x3c]
mov dword [edi + 0x10], eax
mov dword [edi + 0x1c], ecx
call 0x3db1ea
mov dword [edi + 0x14], eax
push dword [esp + 0x2c]
mov eax, dword [ebx + 0x210]
mov ecx, ebx
push edi
push dword [esp + 0x18]
push dword [eax + 0x928]
push 0x4d
call fcn.004731ba
push eax
mov ecx, ebx
call fcn.0047213a
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x6c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x30], eax
push dword [esp + 0x28]
mov ecx, ebx
lea edi, [esi + 4]
push 0
push 0
push 0
push dword [esi + 0x44]
push 0
push 0
push 0x20
push dword [esp + 0x60]
push eax
push 0
push dword [esp + 0x64]
push dword [esp + 0x48]
call fcn.00462a8a
push eax
push edi
mov ecx, ebx
call fcn.004674ca
mov esi, eax
lea ecx, [ebx + 0x24]
mov eax, 0x8000
push 0x30
or word [esi + 2], ax
call fcn.0053ac4a
cmp dword [esp + 0x24], 0
mov edx, eax
mov eax, 0x1e
mov word [edx], ax
mov ecx, dword [edi]
mov dword [edx + 4], ecx
mov ecx, dword [edi + 4]
mov dword [edx + 8], ecx
mov ecx, dword [edi + 8]
mov dword [edx + 0xc], ecx
lea ecx, [edx + 0x18]
mov eax, dword [edi + 0xc]
mov dword [edx + 0x10], eax
mov eax, 0xfffe
mov word [edx + 0x20], ax
mov eax, dword [ebx + 0x1d8]
mov dword [edx + 0x24], eax
mov eax, dword [ebx + 0x12c]
mov dword [edx + 0x14], eax
mov dword [ecx], 0
mov eax, dword [ebx + 0x10c]
mov dword [edx + 0x1c], eax
mov eax, dword [ebx + 0x128]
mov dword [eax], edx
mov dword [ebx + 0x128], ecx
mov dword [ebx + 0x12c], edx
mov dword [edx + 0x28], esi
je 0x51ff5c
mov ecx, ebx
call fcn.005218da
call fcn.005218da
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call 0x59f19b
mov esp, ebp
pop ebp
ret 4
cmp byte [esp + 0xf], 0
jne 0x51ff26
push dword [esp + 0x10]
mov ecx, ebx
push dword [esp + 0x1c]
push 0x760c
call fcn.0042202a
mov byte [esp + 0xf], 1
mov ecx, ebx
call fcn.0042854a
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call 0x59f19b
mov esp, ebp
pop ebp
ret 4
mov ecx, ebx
call 0x400b8a
push eax
push dword [esi + 0x28]
mov ecx, ebx
push edi
push 0x77d4
add al, ch
dec esi
invalid
invalid
invalid
mov ecx, dword [esp + 0xac]