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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5973dd
sub esp, 0x5c
mov eax, dword [esp + 0x64]
cmp eax, 2
jl 0x5970ae
mov ecx, dword [esp + 0x60]
movzx edx, byte [ecx + 1]
movzx ebx, byte [ecx]
shl ebx, 8
or edx, ebx
movzx edx, dx
mov ebx, edx
shl edx, 1
add edx, 2
cmp eax, edx
jl 0x596ff1
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edx
lea eax, [0x6bdac0]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebx
call fcn.0044bce0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x60]
xor esi, esi
jmp 0x59714c
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp], edx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
lea eax, [0x703f5c]
mov dword [esp], eax
mov dword [esp + 4], 0x35
lea eax, [esp + 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esp, 0x5c
ret
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
lea eax, [0x703720]
mov dword [esp], eax
mov dword [esp + 4], 0x34
lea eax, [esp + 0x44]
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 + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esp, 0x5c
ret
mov edi, dword [esp + 0x28]
lea esi, [edi + 1]
mov edi, dword [esp + 0x68]
mov edx, ebx
mov ebx, edi
cmp esi, ecx
jge 0x597393
mov dword [esp + 0x28], esi
shl esi, 1
lea edi, [esi + 2]
cmp edx, edi
jb 0x5973d3
sub ebx, esi
add ebx, 0xfffffffe
neg ebx
sar ebx, 0x1f
and edi, ebx
mov ebx, edx
sub edx, esi
add edx, 0xfffffffe
cmp edx, 1
jbe 0x5973c7
movzx edx, byte [ebp + edi + 1]
movzx esi, byte [ebp + edi]
shl esi, 8
or edx, esi
movzx edx, dx
test edx, edx
je 0x59713d
cmp ebx, edx
jl 0x5972da
mov eax, dword [esp + 0x68]
sub eax, edx
mov esi, eax
neg eax
sar eax, 0x1f
and eax, edx
add eax, ebp
mov dword [esp], eax
sub ebx, edx
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
call fcn.00596ca0
mov eax, dword [esp + 0x10]
movzx ecx, word [esp + 0xc]
movzx edx, word [esp + 0xe]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x2c], esi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x34]
cmp edi, esi
jae 0x5973be
shl edi, 4
mov esi, dword [esp + 0x40]
mov word [esi + edi], cx
mov word [esi + edi + 2], dx
mov dword [esi + edi + 8], ebx
mov dword [esi + edi + 0xc], ebp
mov edx, dword [0x1eaa9f0]
lea ebx, [esi + edi + 4]
test edx, edx
jne 0x59722c
mov dword [esi + edi + 4], eax
jmp 0x597233
mov edi, ebx
call fcn.00465d80
mov edx, dword [esp + 0x2c]
test edx, edx
jne 0x59724e
mov eax, esi
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x60]
jmp 0x59713d
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x59726b
mov edi, dword [eax + 4]
jmp 0x59726d
mov edi, eax
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x38]
mov dword [esp + 0x48], eax
lea eax, [0x6f81ce]
mov dword [esp], eax
mov dword [esp + 4], 0x17
lea eax, [esp + 0x44]
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 edx, dword [esp + 0x40]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esp, 0x5c
ret
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp], edx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
lea eax, [0x703f5c]
mov dword [esp], eax
mov dword [esp + 4], 0x35
lea eax, [esp + 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esp, 0x5c
ret
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x5c
ret
mov eax, edi
mov ecx, esi
call fcn.00465e00
mov eax, 1
mov ecx, edx
call fcn.00465e00
mov eax, edi
mov ecx, edx
call fcn.00465e60
nop
call fcn.004649b0
jmp fcn.00596f70