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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x571af3
sub esp, 0x4c
mov edx, dword [esp + 0x50]
mov ebx, dword [edx + 0xf0]
mov dword [esp + 0x28], ebx
xor eax, eax
jmp 0x571882
inc eax
mov ebx, dword [esp + 0x28]
mov edx, edi
cmp eax, ebx
jge 0x57194e
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
mov ecx, esi
mov esi, dword [edx + 0xec]
mov edi, edx
mov edx, dword [edx + 0xf0]
cmp eax, edx
jae 0x571aeb
lea edx, [eax + eax*2]
lea ebx, [esi + edx*8]
lea edx, [esi + edx*8]
mov edx, dword [edx]
cmp dword [ebx + 4], ebp
je 0x571928
xor ecx, ecx
test cl, cl
je 0x57187b
movzx ecx, byte [esp + 0x6c]
test cl, cl
jne 0x57191f
mov dword [edi], 4
mov dword [edi + 8], 0x1e
mov ecx, dword [0x770e60]
test ecx, ecx
jne 0x571907
lea eax, [0x5f5694]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x70]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x74]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x78]
mov dword [edi + 0x1c], eax
mov byte [esp + 0x7c], 0
add esp, 0x4c
ret
lea ecx, [edi + 4]
mov eax, edi
mov edi, ecx
mov edx, eax
lea eax, [0x5f5694]
call fcn.0045df70
mov edi, edx
jmp 0x5718e9
mov byte [esp + 0x7c], 1
add esp, 0x4c
ret
mov dword [esp + 0x20], eax
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
call fcn.00402890
movzx ecx, byte [esp + 0xc]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x50]
jmp 0x5718bc
mov eax, dword [esp + 0x58]
mov dword [esp + 0x28], eax
lea ecx, [0x5bec80]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00444f30
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x24], ecx
lea edx, [0x5bec80]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00444f30
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
lea edi, [esp + 0x34]
xor eax, eax
call fcn.0045e1fa
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
cmp ecx, edx
jle 0x571ae4
cmp eax, ebx
je 0x5719f1
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.0045e900
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
cmp ebx, ecx
jge 0x571add
cmp edx, eax
je 0x571a1d
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.0045e900
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 0xf0]
lea edx, [ecx + 1]
mov ebx, dword [eax + 0xec]
mov ebp, dword [eax + 0xf4]
cmp edx, ebp
ja 0x571a81
lea edx, [ecx + 1]
mov dword [eax + 0xf0], edx
mov eax, dword [0x770e60]
lea ecx, [ecx + ecx*2]
lea edi, [ebx + ecx*8]
test eax, eax
jne 0x571a65
lea esi, [esp + 0x34]
call fcn.0045e6d4
mov byte [esp + 0x7c], 1
add esp, 0x4c
ret
lea eax, [0x5c9e00]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
call fcn.004106b0
jmp 0x571a5c
lea eax, [0x5c9e00]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
call fcn.004450a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x50]
mov dword [ebx + 0xf4], edx
mov edx, dword [0x770e60]
test edx, edx
jne 0x571ad0
mov dword [ebx + 0xec], eax
mov edx, eax
mov eax, ebx
mov ebx, edx
jmp 0x571a3a
lea edi, [ebx + 0xec]
call fcn.0045df70
jmp 0x571ac5
mov ebx, ecx
jmp 0x571a09
mov edx, ecx
jmp 0x5719dd
mov ecx, edx
call fcn.0045dff0
nop
call fcn.0045ca10
jmp fcn.00571850