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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x571d13
sub esp, 0x68
mov ecx, dword [esp + 0x70]
cmp ecx, 4
jl 0x571a05
nop
lea edx, [ecx - 2]
mov ebx, dword [esp + 0x6c]
movzx ebp, byte [ebx + 1]
movzx esi, byte [ebx]
shl esi, 8
or ebp, esi
cmp edx, 1
jbe 0x571d06
mov word [esp + 0x30], bp
movzx edx, byte [ebx + 3]
movzx esi, byte [ebx + 2]
shl esi, 8
or edx, esi
mov word [esp + 0x32], dx
movzx esi, dx
mov dword [esp + 0x4c], esi
mov edi, dword [esp + 0x74]
xor eax, eax
xor eax, eax
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov eax, 4
mov dword [esp + 0x3c], eax
xor eax, eax
jmp 0x571acf
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp], ecx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
lea eax, [0x700a53]
mov dword [esp], eax
mov dword [esp + 4], 0x2d
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x68
ret
mov eax, dword [esp + 0x48]
inc eax
mov edi, dword [esp + 0x74]
mov ebx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x4c]
movzx edx, word [esp + 0x32]
movzx ebp, word [esp + 0x30]
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x4c]
cmp eax, esi
jge 0x571cb2
mov edx, dword [esp + 0x3c]
cmp ecx, edx
jb 0x571cff
mov dword [esp + 0x48], eax
mov eax, edi
sub edi, edx
mov ebp, edi
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and edi, edx
lea esi, [ebx + edi]
mov dword [esp], esi
mov esi, ecx
sub ecx, edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
call fcn.005748a0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x54], ebx
mov ebp, dword [esp + 0x20]
movzx esi, word [esp + 0x18]
movzx edi, word [esp + 0x1a]
mov ebx, dword [esp + 0x1c]
test ecx, ecx
jne 0x571c0a
mov dword [esp + 0x5c], ebx
mov edx, dword [esp + 0x40]
inc edx
mov ecx, ebp
mov ebp, dword [esp + 0x44]
cmp ebp, edx
jae 0x571bbc
mov dword [esp + 0x38], eax
mov word [esp + 0x36], si
mov word [esp + 0x34], di
mov dword [esp + 0x58], ecx
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x6bd6c0]
mov dword [esp + 0x10], eax
call fcn.0044be60
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x5c]
movzx esi, word [esp + 0x36]
movzx edi, word [esp + 0x34]
mov dword [esp + 0x50], eax
mov ebp, ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ebp
lea edx, [edx + edx*2]
mov ebp, dword [esp + 0x50]
lea ebx, [ebp + edx*4 - 0xc]
mov word [ebx], si
lea ebx, [ebp + edx*4 - 0xa]
mov word [ebx], di
mov ebx, dword [esp + 0x5c]
mov dword [ebp + edx*4 - 8], ebx
mov ebx, dword [0x1eaa9f0]
lea edi, [ebp + edx*4 - 4]
mov esi, dword [esp + 0x3c]
add esi, eax
test ebx, ebx
jne 0x571bfe
mov dword [ebp + edx*4 - 4], ecx
jmp 0x571aa8
mov eax, ecx
call fcn.00465d80
jmp 0x571aa8
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
test edx, edx
je 0x571c21
mov edx, dword [edx + 4]
mov dword [esp + 0x60], edx
mov eax, dword [esp + 0x54]
mov dword [esp + 0x64], eax
lea eax, [0x6f3e7f]
mov dword [esp], eax
mov dword [esp + 4], 0x10
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx edx, word [esp + 0x30]
mov word [esp + 0x78], dx
movzx edx, word [esp + 0x32]
mov word [esp + 0x7a], dx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x68
ret
mov word [esp + 0x78], bp
mov word [esp + 0x7a], dx
mov eax, dword [esp + 0x50]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
add esp, 0x68
ret
mov eax, edx
call fcn.00465e60
mov eax, 1
mov ecx, edx
call fcn.00465e00
nop
call fcn.004649b0
jmp fcn.00571980