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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x531b37
sub esp, 0x60
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 4], ecx
lea edx, [0x6020e4]
mov dword [esp + 8], edx
mov byte [esp + 0xc], 0
call fcn.004c9230
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x531aee
xor eax, eax
xor ecx, ecx
cmp eax, 1
jge 0x5317b9
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0x64]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x80], eax
add esp, 0x60
ret
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], ecx
mov dword [esp], ecx
lea eax, [0x6021f4]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
call fcn.00402890
movzx eax, byte [esp + 0xc]
test al, al
je 0x531782
mov ecx, dword [esp + 0x2c]
cmp ecx, 1
jb 0x531b27
lea eax, [ecx - 1]
mov dword [esp + 0x1c], eax
mov edx, eax
neg eax
sar eax, 0x1f
and eax, 1
mov ebx, dword [esp + 0x40]
add eax, ebx
mov dword [esp + 0x44], eax
mov dword [esp], eax
mov dword [esp + 4], edx
lea ebx, [0x6020e4]
mov dword [esp + 8], ebx
mov byte [esp + 0xc], 0
call fcn.004c9230
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x531ac8
xor eax, eax
xor ecx, ecx
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00531310
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], edx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x50], ebx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004c8e70
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x531a91
mov dword [esp + 0x38], ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], ecx
lea edx, [0x6020e4]
mov dword [esp + 8], edx
mov byte [esp + 0xc], 0
call fcn.004c9230
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x531a6d
xor eax, eax
xor ecx, ecx
cmp eax, 1
jge 0x5318f0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0x64]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x80], eax
add esp, 0x60
ret
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], ecx
mov dword [esp], ecx
lea eax, [0x5eb2c2]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
call fcn.00402890
movzx eax, byte [esp + 0xc]
test al, al
je 0x5318b9
mov ecx, dword [esp + 0x24]
cmp ecx, 1
jb 0x531b13
lea eax, [ecx - 1]
mov dword [esp + 0x20], eax
mov edx, eax
neg eax
sar eax, 0x1f
and eax, 1
mov ebx, dword [esp + 0x4c]
add eax, ebx
mov dword [esp + 0x48], eax
mov dword [esp], eax
mov dword [esp + 4], edx
lea ebx, [0x6020e4]
mov dword [esp + 8], ebx
mov byte [esp + 0xc], 0
call fcn.004c9230
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x531a43
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], ecx
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.005313e0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x14]
test eax, eax
jne 0x5319a7
mov ebp, dword [esp + 0x18]
cmp ebp, ebx
je 0x531a05
xor ebp, ebp
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x5319ce
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x6c], ebp
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ebx
add esp, 0x60
ret
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0x64]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x80], eax
add esp, 0x60
ret
mov dword [esp + 0x54], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x58], edx
mov dword [esp], ecx
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.00402890
movzx ebp, byte [esp + 0xc]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x30]
jmp 0x5319a1
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jb 0x531b0e
mov edx, dword [esp + 0x24]
sub edx, eax
dec edx
mov ebx, edx
neg edx
sar edx, 0x1f
and eax, edx
mov edx, dword [esp + 0x48]
lea ecx, [edx + eax]
mov eax, ebx
jmp 0x53196f
mov ecx, dword [esp + 0x28]
cmp eax, ecx
ja 0x531b1d
sub ecx, eax
mov edx, ecx
neg ecx
sar ecx, 0x1f
and ecx, eax
mov ebx, dword [esp + 0x50]
add ecx, ebx
mov eax, edx
jmp 0x5318b4
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0x64]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x80], eax
add esp, 0x60
ret
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jb 0x531b22
mov edx, dword [esp + 0x2c]
sub edx, eax
dec edx
mov ebx, edx
neg edx
sar edx, 0x1f
and eax, edx
mov edx, dword [esp + 0x44]
lea ecx, [edx + eax]
mov eax, ebx
jmp 0x531838
mov ecx, dword [esp + 0x68]
cmp eax, ecx
ja 0x531b31
sub ecx, eax
mov ebx, ecx
neg ecx
sar ecx, 0x1f
and ecx, eax
mov ebp, dword [esp + 0x64]
add ecx, ebp
mov eax, ebx
jmp 0x53177d
call fcn.0045e050
mov eax, 1
call fcn.0045e050
call fcn.0045e050
call fcn.0045e050
mov eax, 1
call fcn.0045e050
call fcn.0045e050
nop
call fcn.0045ca10
jmp fcn.00531730