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

Disassembly:
sub esp, 0x3c
imul eax, dword [esp + 0x58], 0x6c
push ebx
mov ebx, dword [esp + 0x44]
push ebp
push esi
mov dword [esp + 0x30], eax
mov ebp, ecx
mov ebx, dword [ebx]
xor esi, esi
add eax, ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0xc], eax
push edi
mov edi, dword [esp + 0x64]
mov eax, edi
cdq
sub eax, edx
mov dword [esp + 0x38], ebx
sar eax, 1
mov edx, 1
mov ecx, eax
mov dword [esp + 0x18], esi
shl edx, cl
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], edx
xor edx, edx
mov eax, dword [ecx + 0x14]
dec eax
div dword [esp + 0x28]
mov edx, dword [ecx + 0x58]
inc eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x14], eax
test edx, edx
js 0x100325cd
mov edi, dword [ecx + 0x28]
mov ecx, edi
mov edx, dword [esp + 0x28]
shr edx, cl
imul eax, edx
push edx
push eax
mov eax, dword [esp + 0x6c]
push esi
mov esi, 1
lea eax, [eax + 1]
cdq
sub eax, edx
imul edx, dword [esp + 0x3c], 0x6c
sar eax, 1
mov ecx, eax
shl esi, cl
mov ecx, edi
shr esi, cl
mov ecx, ebp
imul esi, dword [esp + 0x78]
mov edx, dword [edx + ebx + 8]
push esi
call fcn.100214b0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov ebx, dword [esp + 0x6c]
cmp dword [esp + 0x68], esi
jle 0x10032726
lea eax, [edi + 1]
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
shl edx, cl
mov ecx, dword [esp + 0x10]
mov esi, edx
imul esi, ebx
mov dword [esp + 0x2c], edx
xor edx, edx
mov eax, dword [ecx + 0x40]
mov ecx, dword [ecx + 0x4c]
mov eax, dword [eax + esi*4]
div dword [esp + 0x28]
xor edx, edx
mov dword [esp + 0x18], eax
mov eax, dword [ecx + esi*4]
mov esi, dword [esp + 0x28]
dec eax
div esi
inc eax
cmp byte [esp + 0x70], 0
mov dword [esp + 0x14], eax
je 0x100326b9
xor esi, esi
mov dword [esp + 0x30], esi
cmp dword [esp + 0x18], esi
jbe 0x1003271e
mov ecx, dword [esp + 0x58]
push esi
push ebx
push edi
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jne 0x10032682
mov eax, dword [esp + 0x10]
xor edx, edx
push dword [esp + 0x7c]
mov esi, dword [ebp]
mov eax, dword [eax + 0x18]
dec eax
div dword [esp + 0x30]
mov edx, edi
inc eax
push eax
push dword [esp + 0x38]
push ebx
push ecx
mov ecx, ebp
call fcn.10036260
add esp, 0x14
mov ecx, ebp
push eax
push dword [esp + 0x34]
push ebx
push edi
call dword [esi]
mov esi, dword [esp + 0x30]
jmp 0x100326ac
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
push esi
push ebx
mov eax, dword [eax]
push edi
mov ecx, dword [eax + ecx - 0x64]
mov eax, dword [ecx]
call dword [eax + 8]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
push eax
push esi
push ebx
mov ecx, dword [ecx + edx + 8]
push edi
mov edx, dword [ecx]
call dword [edx]
inc esi
mov dword [esp + 0x30], esi
cmp esi, dword [esp + 0x18]
jb 0x10032638
jmp 0x1003271e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
mov ecx, dword [edx + 0x28]
mov edx, dword [edx - 0x64]
shr eax, cl
imul eax, ebx
shr esi, cl
mov ecx, ebp
push esi
mov dword [esp + 0x30], eax
mov eax, esi
imul eax, dword [esp + 0x1c]
push eax
push 0
push dword [esp + 0x38]
call fcn.100214b0
mov eax, dword [esp + 0x20]
xor edx, edx
push esi
mov ecx, ebp
mov eax, dword [eax + 0x14]
dec eax
div dword [esp + 0x3c]
inc eax
imul eax, esi
imul esi, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x68]
push esi
push dword [esp + 0x48]
mov edx, dword [eax]
mov eax, dword [esp + 0x54]
mov edx, dword [edx + eax - 0x64]
call fcn.100214b0
add esp, 0x20
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
cmp ebx, 1
jbe 0x10032af8
lea eax, [edi + 1]
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
shl edx, cl
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], edx
xor edx, edx
mov eax, dword [ecx + 0x18]
dec eax
div dword [esp + 0x30]
cmp ebx, eax
mov eax, dword [esp + 0x14]
jae 0x10032afc
cmp byte [esp + 0x74], 0
jne 0x10032afc
test esi, esi
jne 0x10032afc
cmp eax, 3
jbe 0x10032afc
mov dword [esp + 0x2c], esi
jmp 0x10032784
mov ecx, dword [esp + 0x10]
cmp byte [esp + 0x70], 0
je 0x100327d8
mov ecx, dword [esp + 0x58]
push esi
push ebx
mov eax, dword [ecx]
call dword [eax + 0x24]
test eax, eax
jne 0x100327d4
mov eax, dword [esp + 0x10]
xor edx, edx
push dword [esp + 0x7c]
mov esi, dword [ebp]
mov eax, dword [eax + 0x18]
dec eax
div dword [esp + 0x34]
mov edx, edi
inc eax
push eax
push dword [esp + 0x34]
push ebx
push ecx
mov ecx, ebp
call fcn.10036260
add esp, 0x14
mov ecx, ebp
push eax
push dword [esp + 0x30]
push ebx
call dword [esi + 0x28]
mov esi, dword [esp + 0x2c]
jmp 0x10032830
mov ecx, dword [esp + 0x10]
push dword [esp + 0x78]
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push esi
push ebx
push edi
push dword [esp + 0x74]
push ebp
push ecx
mov ecx, dword [esp + 0x84]
call fcn.10037e60
mov ecx, dword [esp + 0x40]
add esp, 0x24
mov esi, eax
sub ecx, esi
push ecx
mov ecx, dword [esp + 0x24]
sub ecx, esi
push ecx
push dword [esp + 0x68]
mov ecx, dword [esp + 0x30]
call fcn.1001fc70
mov edx, dword [ebp]
add eax, esi
mov esi, dword [esp + 0x2c]
mov ecx, ebp
push eax
push esi
push ebx
call dword [edx + 0x28]
inc esi
mov dword [esp + 0x2c], esi
cmp esi, 2
jb 0x10032780
mov esi, dword [esp + 0x14]
mov edx, 2
mov dword [esp + 0x2c], edx
lea ecx, [esi - 2]
mov dword [esp + 0x18], ecx
cmp ecx, edx
jbe 0x1003295b
lea ebx, [ebx]
cmp byte [esp + 0x70], 0
je 0x100328b3
mov ecx, dword [esp + 0x58]
push edx
push ebx
mov eax, dword [ecx]
call dword [eax + 0x24]
test eax, eax
jne 0x100328af
mov eax, dword [esp + 0x10]
xor edx, edx
push dword [esp + 0x7c]
mov esi, dword [ebp]
mov eax, dword [eax + 0x18]
dec eax
div dword [esp + 0x34]
mov edx, edi
inc eax
push eax
push dword [esp + 0x34]
push ebx
push ecx
mov ecx, ebp
call fcn.10036260
add esp, 0x14
mov ecx, ebp
push eax
push dword [esp + 0x30]
push ebx
call dword [esi + 0x28]
jmp 0x10032942
mov edx, dword [esp + 0x2c]
push dword [esp + 0x78]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push edx
mov edx, dword [esp + 0x64]
push ebx
push edi
push dword [esp + 0x74]
push ebp
push dword [esp + 0x30]
call fcn.10038190
mov esi, dword [esp + 0x44]
mov ecx, eax
mov eax, dword [esp + 0x40]
sub esi, ecx
sub eax, ecx
mov dword [esp + 0x60], ecx
add esp, 0x24
mov dword [esp + 0x38], eax
cmp esi, eax
je 0x10032931
push dword [esp + 0x60]
mov ecx, dword [esp + 0x28]
call fcn.10020f40
mov edx, dword [esp + 0x24]
push dword [esp + 0x38]
mov dword [esp + 0x4c], eax
lea ecx, [edx + 4]
mov dword [esp + 0x44], ecx
mov ecx, dword [edx]
mov edx, esi
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x44]
call fcn.10035bc0
mov ecx, dword [esp + 0x40]
add esp, 4
mov esi, eax
mov edx, dword [ebp]
lea eax, [esi + ecx]
push eax
push dword [esp + 0x30]
mov ecx, ebp
push ebx
call dword [edx + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
inc edx
mov dword [esp + 0x2c], edx
cmp edx, ecx
jb 0x10032860
mov esi, dword [esp + 0x14]
cmp ecx, esi
jae 0x10032a5d
cmp byte [esp + 0x70], 0
je 0x100329bc
mov edx, dword [esp + 0x58]
push ecx
push ebx
mov ecx, edx
mov eax, dword [edx]
call dword [eax + 0x24]
test eax, eax
jne 0x100329b8
mov eax, dword [esp + 0x10]
xor edx, edx
push dword [esp + 0x7c]
mov esi, dword [ebp]
mov eax, dword [eax + 0x18]
dec eax
div dword [esp + 0x34]
mov edx, edi
inc eax
push eax
push dword [esp + 0x20]
push ebx
push ecx
mov ecx, ebp
call fcn.10036260
add esp, 0x14
mov ecx, ebp
push eax
push dword [esp + 0x1c]
push ebx
call dword [esi + 0x28]
mov esi, dword [esp + 0x14]
jmp 0x10032a4c
mov ecx, dword [esp + 0x18]
push dword [esp + 0x78]
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x70]
push ebx
push edi
push dword [esp + 0x74]
push ebp
push dword [esp + 0x30]
call fcn.10037e60
mov ecx, dword [esp + 0x40]
mov edx, eax
mov eax, dword [esp + 0x44]
sub ecx, edx
sub eax, edx
mov dword [esp + 0x50], edx
add esp, 0x24
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
cmp eax, ecx
je 0x10032a3a
push dword [esp + 0x60]
mov ecx, dword [esp + 0x28]
call fcn.10020f40
mov edx, dword [esp + 0x24]
push dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
lea ecx, [edx + 4]
mov dword [esp + 0x44], ecx
mov ecx, dword [edx]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x44]
call fcn.10035bc0
add esp, 4
add eax, dword [esp + 0x2c]
mov ecx, ebp
mov edx, dword [ebp]
push eax
push dword [esp + 0x1c]
push ebx
call dword [edx + 0x28]
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, esi
jb 0x10032963
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x68], 0
jle 0x10032cb9
cmp byte [esp + 0x70], 0
je 0x10032cb9
mov eax, dword [ecx + 0x14]
xor edx, edx
dec eax
div dword [esp + 0x28]
inc eax
cmp esi, eax
jae 0x10032cb9
lea eax, [edi + 1]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x58]
mov ecx, eax
push esi
push ebx
push edi
mov edx, dword [eax]
call dword [edx + 8]
test eax, eax
jne 0x10032c78
mov eax, dword [esp + 0x10]
mov esi, 1
mov ecx, dword [esp + 0x68]
xor edx, edx
shl esi, cl
push dword [esp + 0x7c]
mov eax, dword [eax + 0x18]
dec eax
mov edi, dword [ebp]
div esi
mov esi, dword [esp + 0x68]
mov edx, esi
inc eax
push eax
push dword [esp + 0x1c]
push ebx
push ecx
mov ecx, ebp
call fcn.10036260
add esp, 0x14
mov ecx, ebp
push eax
push dword [esp + 0x18]
push ebx
push esi
call dword [edi]
mov edi, esi
mov esi, dword [esp + 0x14]
jmp 0x10032c9d
mov eax, dword [esp + 0x14]
cmp esi, eax
jae 0x10032c6f
lea eax, [edi + 1]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x3c], eax
cmp byte [esp + 0x70], 0
je 0x10032b73
mov ecx, dword [esp + 0x58]
push esi
push ebx
mov eax, dword [ecx]
call dword [eax + 0x24]
test eax, eax
jne 0x10032b6f
mov eax, dword [esp + 0x10]
mov esi, 1
mov ecx, dword [esp + 0x3c]
xor edx, edx
shl esi, cl
push dword [esp + 0x7c]
mov eax, dword [eax + 0x18]
dec eax
mov edi, dword [ebp]
div esi
mov edx, dword [esp + 0x68]
inc eax
push eax
push dword [esp + 0x20]
push ebx
push ecx
mov ecx, ebp
call fcn.10036260
mov esi, dword [esp + 0x2c]
add esp, 0x14
mov ecx, ebp
push eax
push esi
push ebx
call dword [edi + 0x28]
mov edi, dword [esp + 0x64]
jmp 0x10032c5c
mov ecx, dword [esp + 0x10]
cmp byte [esp + 0x74], 0
je 0x10032bb8
mov ecx, dword [ecx + 0x10]
push esi
push ebx
push edi
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jle 0x10032bb8
mov eax, dword [esp + 0x10]
push esi
push ebx
push edi
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0x68]
sub ecx, eax
mov eax, dword [esp + 0x50]
imul ecx, ecx, 0x6c
push esi
push ebx
mov eax, dword [eax]
push edi
mov ecx, dword [ecx + eax + 8]
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x10032c51
push dword [esp + 0x78]
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x64]
push eax
lea eax, [esp + 0x28]
push eax
push esi
push ebx
push edi
push dword [esp + 0x74]
push ebp
push dword [esp + 0x30]
call fcn.10037e60
mov edx, dword [esp + 0x40]
mov ecx, eax
mov eax, dword [esp + 0x44]
add esp, 0x24
cmp byte [esp + 0x74], 0
mov dword [esp + 0x30], ecx
je 0x10032c05
cmp ecx, edx
jg 0x10032bff
cmp ecx, eax
jge 0x10032c05
mov ecx, eax
mov dword [esp + 0x30], eax
sub edx, ecx
sub eax, ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x2c], eax
cmp eax, edx
je 0x10032c4f
push dword [esp + 0x60]
mov ecx, dword [esp + 0x28]
call fcn.10020f40
mov edx, dword [esp + 0x24]
push dword [esp + 0x38]
mov dword [esp + 0x4c], eax
lea ecx, [edx + 4]
mov dword [esp + 0x44], ecx
mov ecx, dword [edx]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x44]
call fcn.10035bc0
mov ecx, dword [esp + 0x34]
add esp, 4
add eax, ecx
mov edx, dword [ebp]
mov ecx, ebp
push eax
push esi
push ebx
call dword [edx + 0x28]
mov ecx, dword [esp + 0x10]
inc esi
mov dword [esp + 0x18], esi
cmp esi, dword [esp + 0x14]
jb 0x10032b10
mov esi, dword [esp + 0x14]
jmp 0x10032a61
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
push esi
push ebx
mov eax, dword [eax]
push edi
mov ecx, dword [eax + ecx - 0x64]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0x10]
push eax
push esi
push ebx
mov ecx, dword [ecx + 8]
push edi
mov edx, dword [ecx]
call dword [edx]
mov eax, dword [esp + 0x10]
xor edx, edx
inc esi
mov dword [esp + 0x14], esi
mov eax, dword [eax + 0x14]
dec eax
div dword [esp + 0x28]
inc eax
cmp esi, eax
jb 0x10032a96
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret