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

Disassembly:
push ebx
push edi
push esi
sub esp, 0x1a4
mov eax, dword [esp + 0x1c0]
mov dword [esp + 0x34], eax
mov esi, dword [esp + 0x1bc]
mov edx, dword [esp + 0x1b8]
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x1b4]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], 1
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], 1
mov dword [esp + 0x8c], 1
mov dword [esp + 0x90], 1
mov eax, edx
shr eax, 1
mov dword [esp + 0x94], eax
mov dword [esp + 0x3c], ecx
mov ebx, eax
shl ebx, 4
mov edi, ecx
add edi, ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], esi
mov edi, eax
sub edi, 1
mov dword [esp + 0x98], edi
shl edi, 4
mov esi, ecx
add esi, edi
mov dword [esp + 0x48], esi
sub edx, 1
mov dword [esp + 0x9c], edx
mov esi, edx
shl esi, 4
add ecx, esi
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xa0], ecx
shl edx, 4
add ecx, edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], eax
lea eax, [esp + 0x54]
mov dword [esp + 0xac], eax
lea eax, [esp + 0x54]
mov dword [esp + 0xb0], eax
lea eax, [esp + 0x54]
add eax, 4
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x58]
jb 0x51e87b
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0xb8], ecx
add ecx, 0x10
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0xc0], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xc4], ecx
add ecx, 0x10
mov dword [esp + 0xc8], ecx
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x30], ecx
mov dword [esp + 0xcc], ecx
and eax, 1
cmp eax, 0
je 0x51ec67
jmp 0x51ec69
mov eax, dword [esp + 0x54]
mov dword [esp + 0xec], eax
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.0040d910
mov edx, dword [esp + 0x34]
mov dword [esp + 0x54], eax
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x168], esi
mov dword [esp + 0x16c], ecx
mov dword [esp + 0x170], eax
mov dword [esp + 0x178], edx
mov dword [esp + 0x17c], 1
mov dword [esp + 0x180], 1
mov ecx, dword [esp + 0x16c]
mov eax, dword [esp + 0x168]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0049ec20
mov byte [esp + 0x2a], al
xor al, 0xff
mov byte [esp + 0x2b], al
mov cl, al
and cl, 1
mov byte [esp + 0x187], cl
test al, 1
jne 0x51e924
mov eax, dword [esp + 0x16c]
mov dword [esp + 0x174], eax
jmp 0x51e932
mov eax, dword [esp + 0x168]
mov dword [esp + 0x174], eax
mov esi, dword [esp + 0x174]
mov dword [esp + 0x188], esi
mov eax, dword [esp + 0x170]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18c], eax
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], 0x10
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], 1
call fcn.00480ae0
mov eax, dword [esp + 0x24]
mov ch, byte [esp + 0x2a]
mov cl, byte [esp + 0x2b]
mov edx, dword [esp + 0x34]
mov edi, dword [esi]
mov dword [eax], edi
mov edi, dword [esi + 4]
mov dword [eax + 4], edi
mov edi, dword [esi + 8]
mov dword [eax + 8], edi
mov esi, dword [esi + 0xc]
mov dword [eax + 0xc], esi
mov eax, dword [esp + 0x16c]
mov dword [esp + 0x190], eax
and ch, 1
movzx esi, ch
mov dword [esp + 0x194], esi
shl esi, 4
add eax, esi
mov dword [esp + 0x16c], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 0x198], eax
and cl, 1
movzx ecx, cl
mov dword [esp + 0x19c], ecx
shl ecx, 4
add eax, ecx
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0x1a0], eax
add eax, 0x10
mov dword [esp + 0x170], eax
mov esi, dword [esp + 0x168]
mov ecx, dword [esp + 0x16c]
mov eax, dword [esp + 0x170]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov esi, dword [esp + 0x5c]
mov dword [esp + 0xf0], esi
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xf4], ecx
mov eax, dword [esp + 0x64]
mov dword [esp + 0xf8], eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x108], esi
mov dword [esp + 0x10c], ecx
mov dword [esp + 0x110], eax
mov dword [esp + 0x11c], edx
mov dword [esp + 0x120], 1
mov dword [esp + 0x124], 0
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], 1
mov ecx, dword [esp + 0x10c]
mov eax, dword [esp + 0x108]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0049ec20
mov byte [esp + 0x28], al
xor al, 0xff
mov byte [esp + 0x29], al
mov cl, al
and cl, 1
mov byte [esp + 0x133], cl
test al, 1
jne 0x51eaec
mov eax, dword [esp + 0x108]
mov dword [esp + 0x114], eax
jmp 0x51eafa
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x114], eax
mov esi, dword [esp + 0x114]
mov dword [esp + 0x134], esi
mov eax, dword [esp + 0x110]
mov dword [esp + 0x20], eax
mov dword [esp + 0x138], eax
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], 0x10
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], 1
call fcn.00480ae0
mov eax, dword [esp + 0x20]
mov dl, byte [esp + 0x29]
mov cl, byte [esp + 0x28]
mov edi, dword [esi]
mov dword [eax], edi
mov edi, dword [esi + 4]
mov dword [eax + 4], edi
mov edi, dword [esi + 8]
mov dword [eax + 8], edi
mov esi, dword [esi + 0xc]
mov dword [eax + 0xc], esi
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x13c], eax
and dl, 1
movzx esi, dl
mov dword [esp + 0x140], esi
mov dword [esp + 0x144], esi
xor edx, edx
sub edx, esi
mov dword [esp + 0x148], edx
shl edx, 4
add eax, edx
mov dword [esp + 0x14c], eax
mov eax, dword [esp + 0x14c]
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x108]
mov dword [esp + 0x150], eax
and cl, 1
movzx edx, cl
mov dword [esp + 0x154], edx
mov dword [esp + 0x158], edx
xor ecx, ecx
sub ecx, edx
mov dword [esp + 0x15c], ecx
shl ecx, 4
add eax, ecx
mov dword [esp + 0x160], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x110]
mov dword [esp + 0x164], eax
add eax, 0xfffffff0
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x118]
mov dword [esp + 0x110], eax
mov edx, dword [esp + 0x108]
mov ecx, dword [esp + 0x10c]
mov eax, dword [esp + 0x110]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
mov edx, dword [esp + 0x68]
mov dword [esp + 0xfc], edx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x100], ecx
mov eax, dword [esp + 0x70]
mov dword [esp + 0x104], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
jmp 0x51e7ea
jmp 0x51ec8a
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x3c], eax
setb al
mov byte [esp + 0x1f], al
mov cl, al
and cl, 1
mov byte [esp + 0xd3], cl
test al, 1
jne 0x51eca7
jmp 0x51ec9d
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x3c], eax
jne 0x51ed73
jmp 0x51ed67
mov eax, dword [esp + 0x40]
mov dword [esp + 0x74], eax
jmp 0x51ecaf
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], eax
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x10
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], 1
call fcn.00480ae0
mov cl, byte [esp + 0x1f]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov esi, dword [edx]
mov dword [eax], esi
mov esi, dword [edx + 4]
mov dword [eax + 4], esi
mov esi, dword [edx + 8]
mov dword [eax + 8], esi
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xdc], eax
mov dl, cl
and dl, 1
movzx edx, dl
mov dword [esp + 0xe0], edx
shl edx, 4
add eax, edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xe4], eax
xor cl, 0xff
and cl, 1
movzx ecx, cl
mov dword [esp + 0xe8], ecx
shl ecx, 4
add eax, ecx
mov dword [esp + 0x40], eax
jmp 0x51ec8a
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x40], eax
jne 0x51ed7f
jmp 0x51ed75
jmp 0x51ed81
add esp, 0x1a4
pop esi
pop edi
pop ebx
ret
jmp 0x51ed81
call fcn.005f6dc0
int3