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

Disassembly:
push edi
push esi
sub esp, 0x134
mov eax, dword [esp + 0x150]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x14c]
mov eax, dword [esp + 0x148]
mov eax, dword [esp + 0x144]
mov ecx, dword [esp + 0x140]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
lea eax, [0x602bac]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], 1
mov dword [esp + 0xbc], 1
lea eax, [0x602bac]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x130], 0x20
cmp eax, dword [esp + 0x130]
jbe 0x510a2b
cmp dword [esp + 0x14c], 0
je 0x510a73
jmp 0x510a91
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x118], edx
mov dword [esp + 0x11c], ecx
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], edx
mov dword [esp + 0x128], ecx
mov dword [esp + 0x12c], eax
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0051cba0
jmp 0x510ae4
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00462030
jmp 0x510ae4
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x14c]
sub ecx, 1
mov dword [esp + 0x14c], ecx
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0050f420
mov dword [esp + 0x4c], eax
mov dword [esp + 0xc4], eax
mov edx, dword [esp + 0x148]
mov eax, 1
xor ecx, ecx
cmp edx, 0
cmove eax, ecx
cmp eax, 1
je 0x510aed
jmp 0x510b1f
add esp, 0x134
pop esi
pop edi
ret
mov eax, dword [esp + 0x148]
mov dword [esp + 0x40], eax
mov dword [esp + 0xc8], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x58]
mov dword [esp + 0x48], eax
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], eax
jmp 0x510b79
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.005107b0
mov dword [esp + 0x34], eax
mov dword [esp + 0xe8], eax
mov edx, dword [esp + 0x54]
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0xec], edx
mov dword [esp + 0xf0], ecx
cmp eax, ecx
jbe 0x510c94
jmp 0x510c4d
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004e93c0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0xd4], eax
imul esi, esi, 0x18
add eax, esi
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0040db80
test al, 1
jne 0x510c48
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x5c]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.005105c0
mov esi, eax
mov dword [esp + 0xd8], esi
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], ecx
add esi, 1
mov dword [esp + 0xe4], esi
lea eax, [0x602c58]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.00497530
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x148], 0
jmp 0x510a07
jmp 0x510b1f
mov dword [esp + 0x64], 0x602bac
mov dword [esp + 0x68], 1
mov ecx, dword [0x6029e4]
mov eax, dword [0x6029e8]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x6c], 4
mov dword [esp + 0x70], 0
mov eax, esp
lea ecx, [esp + 0x64]
mov dword [eax], ecx
mov dword [eax + 4], 0x602c68
call fcn.005f6ab0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
lea esi, [esp + 0x7c]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.00421e90
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x80]
mov dword [esp + 0x28], eax
mov dword [esp + 0xf4], ecx
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x30], ecx
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], ecx
mov eax, 1
cmp eax, ecx
jbe 0x510d62
mov dword [esp + 0x8c], 0x602bac
mov dword [esp + 0x90], 1
mov ecx, dword [0x6029e4]
mov eax, dword [0x6029e8]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
mov dword [esp + 0x94], 4
mov dword [esp + 0x98], 0
mov eax, esp
lea ecx, [esp + 0x8c]
mov dword [eax], ecx
mov dword [eax + 4], 0x602c78
call fcn.005f6ab0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0xa4]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
call fcn.00421e90
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], ecx
mov edx, dword [esp + 0xac]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10c], edx
mov dword [esp + 0x110], eax
xor eax, eax
cmp eax, ecx
jae 0x510e3c
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x114], ecx
mov edx, dword [esp + 0x148]
mov ecx, dword [esp + 0x14c]
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.005109a0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x148], eax
jmp 0x510a07
mov ecx, dword [esp + 0x18]
mov eax, esp
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x602c88
mov dword [eax], 0
call fcn.005f6c04
int3