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

Disassembly:
sub esp, 0x30
mov eax, dword [esp + 0x34]
push ebx
push ebp
push esi
mov esi, dword [eax]
mov ebx, ecx
imul ecx, dword [esp + 0x58], 0x6c
mov ebp, 1
push edi
mov edi, 1
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], edi
add esi, ecx
mov edi, dword [esp + 0x58]
mov eax, edi
cdq
sub eax, edx
mov dword [esp + 0x30], ecx
sar eax, 1
xor edx, edx
mov ecx, eax
mov dword [esp + 0x2c], esi
mov eax, dword [esi + 0x14]
shl ebp, cl
dec eax
div ebp
mov dword [esp + 0x28], ebp
lea edx, [eax + 1]
mov eax, dword [esi + 0x58]
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], eax
test eax, eax
js 0x10033cbf
mov edi, dword [esi + 0x28]
mov ecx, edi
shr ebp, cl
mov esi, 1
imul edx, ebp
lea eax, [ebp*2]
push eax
mov eax, dword [esp + 0x5c]
push edx
inc eax
cdq
sub eax, edx
imul edx, dword [esp + 0x2c], 0x6c
sar eax, 1
mov ecx, eax
mov eax, dword [esp + 0x4c]
shl esi, cl
mov ecx, edi
shr esi, cl
imul esi, dword [esp + 0x68]
mov ecx, dword [eax]
push ebp
mov edx, dword [edx + ecx + 0xc]
mov ecx, ebx
push esi
call fcn.100214b0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
cmp dword [esp + 0x5c], 0
mov ebp, dword [esp + 0x60]
jle 0x10033dad
lea eax, [edi + 1]
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
shl edx, cl
mov ecx, dword [esp + 0x2c]
mov esi, edx
imul esi, ebp
mov dword [esp + 0x24], 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 edi, eax
mov eax, dword [ecx + esi*4]
mov esi, dword [esp + 0x28]
dec eax
div esi
mov edx, edi
mov dword [esp + 0x10], edi
inc eax
or eax, 1
mov dword [esp + 0x14], eax
cmp edx, 1
jbe 0x10033d22
test dl, 1
jne 0x10033d22
dec edx
mov edi, dword [esp + 0x44]
test edx, edx
mov eax, dword [esp + 0x30]
mov ecx, 1
cmove edx, ecx
mov dword [esp + 0x10], edx
mov ecx, dword [edi]
mov edi, esi
mov ecx, dword [ecx + eax + 0x28]
mov eax, dword [esp + 0x24]
shr eax, cl
imul eax, ebp
shr edi, cl
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x24], eax
lea esi, [edi + edi]
mov eax, edi
imul eax, edx
mov edx, dword [esp + 0x30]
push esi
push eax
mov eax, dword [ecx]
mov ecx, ebx
push edi
push dword [esp + 0x30]
mov edx, dword [eax + edx - 0x60]
call fcn.100214b0
push esi
mov esi, dword [esp + 0x40]
xor edx, edx
mov ecx, ebx
mov eax, dword [esi + 0x14]
dec eax
div dword [esp + 0x3c]
inc eax
imul eax, edi
imul edi, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x5c]
push edi
push dword [esp + 0x40]
mov edx, dword [eax]
mov eax, dword [esp + 0x50]
mov edx, dword [edx + eax - 0x60]
call fcn.100214b0
mov edi, dword [esp + 0x78]
add esp, 0x20
cmp ebp, 1
jbe 0x10033fdc
lea eax, [edi + 1]
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov ecx, eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x30]
dec eax
div ecx
cmp ebp, eax
mov al, byte [esp + 0x68]
jae 0x10033fd6
test al, al
jne 0x10033fd6
mov eax, dword [esi + 0x14]
xor edx, edx
dec eax
div dword [esp + 0x28]
mov edx, dword [esp + 0x14]
inc eax
cmp edx, eax
jne 0x10033fdc
cmp edx, 5
mov edx, dword [esp + 0x10]
jbe 0x10033fe0
cmp edx, 1
jne 0x10033fe0
push dword [esp + 0x6c]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
push edx
mov edx, dword [esp + 0x58]
push ebp
push edi
mov edi, dword [esp + 0x6c]
push ecx
push ebx
push esi
mov ecx, edi
call fcn.100390a0
mov ecx, dword [esp + 0x3c]
add esp, 0x24
mov esi, eax
sub ecx, esi
push ecx
mov ecx, dword [esp + 0x20]
sub ecx, esi
push ecx
mov ecx, dword [esp + 0x28]
push edi
call fcn.1001fc70
mov edx, dword [ebx]
add eax, esi
push eax
push 1
push ebp
mov ecx, ebx
call dword [edx + 0x28]
mov eax, dword [esp + 0x14]
mov esi, 3
lea ecx, [eax - 2]
mov dword [esp + 0x30], ecx
cmp ecx, esi
jbe 0x10033f1d
lea ecx, [ecx]
push dword [esp + 0x6c]
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
push esi
push ebp
sub esp, 8
push ebx
push ecx
mov ecx, edi
call fcn.10039360
mov edi, dword [esp + 0x40]
mov ecx, eax
mov eax, dword [esp + 0x3c]
sub edi, ecx
sub eax, ecx
mov dword [esp + 0x80], ecx
add esp, 0x24
mov dword [esp + 0x44], eax
cmp edi, eax
je 0x10033efb
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x20]
push eax
call fcn.10020f40
mov edx, dword [esp + 0x20]
push dword [esp + 0x44]
mov dword [esp + 0x40], eax
lea ecx, [edx + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [edx]
mov edx, edi
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x38]
call fcn.10035bc0
mov ecx, dword [esp + 0x60]
add esp, 4
mov edi, eax
mov edx, dword [ebx]
lea eax, [edi + ecx]
push eax
push esi
push ebp
mov ecx, ebx
call dword [edx + 0x28]
mov edi, dword [esp + 0x54]
add esi, 2
cmp esi, dword [esp + 0x30]
jb 0x10033e80
mov eax, dword [esp + 0x14]
cmp esi, eax
jae 0x100340f9
jmp 0x10033f30
push dword [esp + 0x6c]
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
push esi
push ebp
push dword [esp + 0x6c]
push ecx
push ebx
push dword [esp + 0x4c]
mov ecx, edi
call fcn.100390a0
mov edi, dword [esp + 0x40]
mov ecx, eax
mov eax, dword [esp + 0x3c]
sub edi, ecx
sub eax, ecx
mov dword [esp + 0x80], ecx
add esp, 0x24
mov dword [esp + 0x44], eax
cmp edi, eax
je 0x10033fb0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x20]
push eax
call fcn.10020f40
mov edx, dword [esp + 0x20]
push dword [esp + 0x44]
mov dword [esp + 0x40], eax
lea ecx, [edx + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [edx]
mov edx, edi
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x38]
call fcn.10035bc0
mov ecx, dword [esp + 0x60]
add esp, 4
mov edi, eax
mov edx, dword [ebx]
lea eax, [edi + ecx]
push eax
push esi
push ebp
mov ecx, ebx
call dword [edx + 0x28]
mov edi, dword [esp + 0x54]
add esi, 2
cmp esi, dword [esp + 0x14]
jb 0x10033f30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov edx, dword [esp + 0x10]
jmp 0x10033fe4
mov edx, dword [esp + 0x10]
mov al, byte [esp + 0x68]
cmp edx, dword [esp + 0x14]
jae 0x100340f9
mov edi, edi
test al, al
je 0x10034046
mov ecx, dword [esi + 0x10]
push edx
push ebp
push edi
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jle 0x10034042
mov ecx, dword [esi + 0x10]
mov edi, dword [esp + 0x10]
push edi
push ebp
mov eax, dword [ecx]
push dword [esp + 0x60]
call dword [eax + 8]
mov ecx, dword [esp + 0x5c]
sub ecx, eax
mov eax, dword [esp + 0x44]
imul ecx, ecx, 0x6c
push edi
push ebp
mov eax, dword [eax]
push dword [esp + 0x60]
mov ecx, dword [ecx + eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 8]
mov edx, dword [ebx]
mov ecx, ebx
push eax
push edi
push ebp
call dword [edx + 0x28]
jmp 0x100340dc
mov edx, dword [esp + 0x10]
push dword [esp + 0x6c]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
push edx
mov edx, dword [esp + 0x58]
push ebp
push edi
push ecx
mov ecx, dword [esp + 0x70]
push ebx
push esi
call fcn.100390a0
mov esi, dword [esp + 0x40]
add esp, 0x24
cmp byte [esp + 0x68], 0
mov edi, eax
mov eax, dword [esp + 0x18]
je 0x10034085
cmp edi, eax
jg 0x10034083
cmp edi, esi
jge 0x10034085
mov edi, esi
sub eax, edi
sub esi, edi
mov dword [esp + 0x30], eax
cmp esi, eax
je 0x100340c7
push dword [esp + 0x54]
mov ecx, dword [esp + 0x24]
call fcn.10020f40
mov edx, dword [esp + 0x20]
push dword [esp + 0x30]
mov dword [esp + 0x40], eax
lea ecx, [edx + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [edx]
mov edx, esi
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x38]
call fcn.10035bc0
add esp, 4
mov esi, eax
mov edx, dword [ebx]
lea eax, [esi + edi]
mov edi, dword [esp + 0x10]
mov ecx, ebx
push eax
push edi
push ebp
call dword [edx + 0x28]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x58]
add edx, 2
mov al, byte [esp + 0x68]
mov dword [esp + 0x10], edx
cmp edx, dword [esp + 0x14]
jb 0x10033ff0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret