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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0xa0]
cmp eax, dword [ecx + 8]
jbe 0x51eb0c
sub esp, 0x120
mov eax, 0
lea edi, [esp + 0x78]
call fcn.0044b756
mov eax, dword [esp + 0x124]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x51eaca
mov ecx, dword [esp + 0x130]
test ecx, ecx
je 0x51e529
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
xor ebx, ebx
jmp 0x51e4d9
inc ebx
cmp ebx, edx
jge 0x51e529
mov ebp, dword [ecx + ebx*4]
mov ebp, dword [ebp + 4]
test ebp, ebp
jne 0x51e4d8
mov eax, dword [0x7c94dc]
mov ecx, dword [0x7c94d8]
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0
mov dword [esp + 0x168], ecx
mov dword [esp + 0x16c], eax
add esp, 0x120
ret
mov ecx, dword [esp + 0x134]
test ecx, ecx
je 0x51ea79
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
lea ecx, [esp + 0x128]
mov dword [esp + 0x14], ecx
call fcn.0051dd80
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x51ea43
mov eax, dword [esp + 0x12c]
test eax, eax
jg 0x51e9d8
mov eax, dword [esp + 0x134]
mov dword [esp], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 4], eax
call fcn.00519830
movzx eax, byte [esp + 8]
test al, al
je 0x51e905
lea eax, [0x5d7680]
mov dword [esp], eax
call fcn.00409a30
mov edi, dword [esp + 4]
mov dword [esp + 0x60], edi
mov eax, dword [0x7db370]
test eax, eax
jne 0x51e8f4
mov eax, dword [esp + 0x124]
mov dword [edi], eax
lea eax, [0x5d0120]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 1
call fcn.00437c50
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov edx, dword [0x7db370]
test edx, edx
jne 0x51e8e2
mov edx, dword [esp + 0x60]
mov dword [edi], edx
inc eax
mov edx, dword [esp + 0x14c]
mov ebx, dword [esp + 0x150]
mov ebp, dword [esp + 0x154]
test ebx, ebx
jne 0x51e8d7
mov edx, dword [0x65deb0]
mov dword [esp + 0x4c], edx
mov edx, 1
mov ebx, 1
lea ebp, [esp + 0x4c]
mov dword [esp + 0x30], edx
xor esi, esi
jmp 0x51e67d
inc esi
mov edx, dword [esp + 0x30]
cmp esi, ebx
jge 0x51e6bb
mov edx, dword [ebp + esi*4]
test edx, edx
jne 0x51e678
mov dword [esp + 0x15c], edi
mov dword [esp + 0x160], eax
mov dword [esp + 0x164], ecx
mov dword [esp + 0x168], 0
mov dword [esp + 0x16c], 0
add esp, 0x120
ret
test eax, eax
jle 0x51e8cc
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x5c], ebp
xor ecx, ecx
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x48], ecx
xor ecx, ecx
mov dword [esp + 0x58], ecx
xor ecx, ecx
jmp 0x51e702
mov esi, eax
mov eax, dword [esp + 0x54]
lea edi, [eax + 0xc]
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x58], esi
mov ebx, dword [esp + 0x2c]
mov esi, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x44], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x40], ecx
mov eax, dword [edi]
mov dword [esp + 0x50], eax
mov ecx, dword [edi + 4]
mov dword [esp + 0x38], ecx
mov edi, dword [edi + 8]
mov dword [esp + 0x3c], edi
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edx
call fcn.0051fd20
movzx eax, byte [esp + 0x18]
test al, al
je 0x51e8bb
mov ecx, dword [esp + 0x44]
lea edx, [ecx + 1]
mov ebx, dword [esp + 0x48]
cmp edx, ebx
jg 0x51e881
mov eax, dword [esp + 0x58]
lea ecx, [ecx + ecx*2]
mov ebp, dword [esp + 0x38]
mov dword [eax + ecx*4 + 4], ebp
mov ebp, dword [esp + 0x3c]
mov dword [eax + ecx*4 + 8], ebp
mov ebp, dword [0x7db370]
lea edi, [eax + ecx*4]
test ebp, ebp
jne 0x51e86f
mov ebp, dword [esp + 0x50]
mov dword [eax + ecx*4], ebp
mov ecx, dword [esp + 0x40]
inc ecx
mov ebp, dword [esp + 0x34]
cmp ecx, ebp
jl 0x51e6e3
test edx, edx
jne 0x51e83d
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov eax, dword [esp + 0x124]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 4
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
lea eax, [0x65f930]
mov dword [esp], eax
lea eax, [esp + 0x68]
mov dword [esp + 4], eax
call fcn.00407420
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], ecx
add esp, 0x120
ret
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], edx
mov dword [esp + 0x164], ebx
mov dword [esp + 0x168], 0
mov dword [esp + 0x16c], 0
add esp, 0x120
ret
mov ecx, eax
mov eax, dword [esp + 0x50]
call fcn.0044b680
mov eax, ecx
jmp 0x51e78d
lea eax, [0x5d0120]
mov dword [esp], eax
mov ebp, dword [esp + 0x58]
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.00437c50
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x44]
jmp 0x51e762
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
jmp 0x51e78d
xor eax, eax
xor edx, edx
xor ebx, ebx
jmp 0x51e79e
mov esi, edx
mov edx, ebp
mov ebp, esi
jmp 0x51e670
mov edx, eax
mov eax, dword [esp + 0x60]
call fcn.0044b680
mov eax, edx
jmp 0x51e63a
mov eax, dword [esp + 0x124]
call fcn.0044b680
jmp 0x51e5de
lea edi, [esp + 0x78]
xor eax, eax
call fcn.0044b779
lea edi, [esp + 0x94]
call fcn.0044b75d
lea ecx, [esp + 0x94]
mov dword [esp + 0x84], ecx
call fcn.0043bed0
mov ecx, dword [esp]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x64], 0
mov ecx, dword [esp + 0x124]
mov dword [esp + 0x64], ecx
mov dword [esp], ecx
lea edx, [esp + 0x78]
mov dword [esp + 4], edx
lea edx, [esp + 0x64]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
lea edx, [esp + 0x128]
mov dword [esp + 0x14], edx
call fcn.0051eb20
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
test ebp, ebp
jne 0x51e9a2
mov eax, edx
mov edi, ecx
mov ecx, ebx
jmp 0x51e63b
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0
mov dword [esp + 0x168], ebp
mov dword [esp + 0x16c], esi
add esp, 0x120
ret
mov eax, dword [esp + 0x124]
mov dword [esp], eax
mov ecx, dword [esp + 0x128]
mov edx, dword [esp + 0x12c]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.0051fa20
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x51e58a
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], ecx
add esp, 0x120
ret
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0
mov dword [esp + 0x168], ecx
mov dword [esp + 0x16c], eax
add esp, 0x120
ret
mov dword [esp], eax
lea eax, [esp + 0x128]
mov dword [esp + 4], eax
call fcn.0051ae10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 8]
mov dword [esp + 0x15c], ebp
mov dword [esp + 0x160], ebx
mov dword [esp + 0x164], edx
mov dword [esp + 0x168], ecx
mov dword [esp + 0x16c], eax
add esp, 0x120
ret
mov eax, dword [0x7c94dc]
mov ecx, dword [0x7c94d8]
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0
mov dword [esp + 0x168], ecx
mov dword [esp + 0x16c], eax
add esp, 0x120
ret
call fcn.00449f20
jmp fcn.0051e480