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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x511124
sub esp, 0x70
mov eax, 0
mov dword [esp + 0x6c], eax
mov byte [esp + 0x23], 0
mov eax, dword [esp + 0x74]
test byte [eax], al
mov dword [esp], eax
call fcn.00468e70
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea eax, [0x511130]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x68], eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x6c], ecx
mov byte [esp + 0x23], 1
lea ecx, [0x522b20]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00449820
mov eax, dword [esp + 0xc]
xor ecx, ecx
xor edx, edx
xor ebx, ebx
jmp 0x510f5b
mov ebp, dword [esp + 0x44]
inc ebp
mov ebx, eax
mov eax, edx
mov edx, ecx
mov ecx, ebp
mov ebp, dword [esp + 0x7c]
cmp ebp, ecx
jle 0x510fde
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x78]
lea edx, [eax + ecx*8]
mov ebx, dword [edx]
mov dword [esp + 0x54], ebx
mov edx, dword [edx + 4]
mov dword [esp + 0x28], edx
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.004c8fb0
mov eax, dword [esp + 8]
test eax, eax
je 0x510fcd
mov ecx, dword [esp + 0x74]
mov ebp, dword [ecx + 0x18]
mov dword [esp + 0x60], ebp
mov esi, dword [ecx + 0x1c]
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
jmp 0x511025
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x58]
jmp 0x510f4e
mov ecx, dword [esp + 0x74]
mov dword [ecx + 0x1c], ebx
mov dword [ecx + 0x20], edx
mov ebx, dword [0x92b5b0]
test ebx, ebx
jne 0x510ff7
mov dword [ecx + 0x18], eax
jmp 0x510fff
lea edi, [ecx + 0x18]
call fcn.00461c70
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x6c]
mov eax, dword [edx]
call eax
add esp, 0x70
ret
mov ecx, dword [esp + 0x3c]
inc ecx
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x74]
mov ecx, dword [esp + 0x3c]
cmp ecx, esi
jge 0x511112
lea ebp, [ebp + ecx*8]
mov esi, dword [ebp]
mov dword [esp + 0x50], esi
mov ebp, dword [ebp + 4]
mov dword [esp + 0x24], ebp
cmp ebp, eax
jne 0x51109e
mov dword [esp + 0x5c], edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], edi
mov dword [esp], esi
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
call fcn.00402a50
movzx eax, byte [esp + 0xc]
test al, al
je 0x511082
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x5c]
jmp 0x511010
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x34]
inc ebx
cmp edi, ebx
jae 0x5110e1
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], edi
mov dword [esp + 0xc], 1
lea eax, [0x522b20]
mov dword [esp + 0x10], eax
call fcn.004498e0
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x50]
lea ecx, [edx + ebx*8 - 4]
mov dword [ecx], ebp
lea ecx, [edx + ebx*8 - 8]
mov ebp, dword [0x92b5b0]
test ebp, ebp
jne 0x5110fc
mov dword [ecx], esi
jmp 0x511010
mov ebp, edi
mov edi, ecx
mov eax, esi
call fcn.00461c70
mov eax, dword [esp + 0x28]
mov edi, ebp
jmp 0x511010
mov eax, ebx
mov ecx, edi
jmp 0x510f4e
call fcn.00460860
jmp fcn.00510ec0