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

Disassembly:
sub esp, 0x38
mov eax, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x54]
push ebp
mov eax, dword [eax]
mov ebp, ecx
imul ecx, dword [esp + 0x5c], 0x6c
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], edx
push esi
mov esi, 1
mov dword [esp + 0x10], 1
add eax, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0xc], eax
mov eax, ebx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov ecx, eax
shl esi, cl
mov ecx, dword [esp + 0xc]
push edi
mov dword [esp + 0x18], esi
mov eax, dword [ecx + 0x14]
dec eax
div esi
lea edi, [eax + 1]
mov eax, dword [ecx + 0x58]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], eax
test eax, eax
js 0x100241d1
mov edi, dword [ecx + 0x28]
mov ecx, edi
shr esi, cl
lea eax, [esi + esi]
push eax
mov eax, dword [esp + 0x20]
imul eax, esi
push eax
lea eax, [ebx + 1]
cdq
sub eax, edx
imul edx, dword [esp + 0x34], 0x6c
push esi
sar eax, 1
mov esi, 1
mov ecx, eax
mov eax, dword [esp + 0x40]
shl esi, cl
mov ecx, edi
shr esi, cl
mov ecx, ebp
imul esi, dword [esp + 0x74]
mov edx, dword [edx + eax]
push esi
call fcn.100214b0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
cmp dword [esp + 0x64], 0
mov esi, dword [esp + 0x68]
jle 0x10024360
lea eax, [ebx + 1]
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
shl edx, cl
mov ecx, dword [esp + 0x10]
mov edi, edx
imul edi, esi
mov dword [esp + 0x2c], edx
xor edx, edx
mov eax, dword [ecx + 0x40]
mov ecx, dword [ecx + 0x4c]
mov eax, dword [eax + edi*4]
div dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x14], eax
mov eax, dword [ecx + edi*4]
dec eax
div dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea edi, [eax + 1]
or edi, 1
mov dword [esp + 0x1c], edi
cmp edx, 1
jbe 0x10024234
test dl, 1
jne 0x10024234
dec edx
test edx, edx
mov eax, 1
cmove edx, eax
cmp byte [esp + 0x6c], 0
mov dword [esp + 0x14], edx
je 0x100242e6
mov dword [esp + 0x2c], eax
cmp edx, eax
jbe 0x1002435c
mov edi, eax
jmp 0x10024260
mov ecx, dword [esp + 0x54]
push edi
push esi
push ebx
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jne 0x100242aa
mov eax, dword [esp + 0x10]
xor edx, edx
push dword [esp + 0x78]
mov edi, dword [ebp]
mov eax, dword [eax + 0x14]
dec eax
div dword [esp + 0x1c]
mov edx, ebx
inc eax
push eax
push dword [esp + 0x34]
push esi
push ecx
mov ecx, ebp
call fcn.10038400
add esp, 0x14
mov ecx, ebp
push eax
push dword [esp + 0x30]
push esi
push ebx
call dword [edi]
mov edi, dword [esp + 0x2c]
jmp 0x100242d3
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
push edi
push esi
mov eax, dword [eax]
push ebx
mov ecx, dword [eax + ecx - 0x6c]
mov eax, dword [ecx]
call dword [eax + 8]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push eax
push edi
push esi
mov ecx, dword [ecx + edx]
push ebx
mov edx, dword [ecx]
call dword [edx]
add edi, 2
mov dword [esp + 0x2c], edi
cmp edi, dword [esp + 0x14]
jb 0x10024260
mov edi, dword [esp + 0x1c]
jmp 0x1002435c
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov ecx, dword [eax + 0x28]
mov eax, dword [esp + 0x2c]
shr eax, cl
imul eax, esi
shr ebx, cl
mov ecx, ebp
mov dword [esp + 0x2c], eax
lea edi, [ebx + ebx]
mov eax, ebx
imul eax, edx
push edi
push eax
mov eax, dword [esp + 0x18]
push ebx
push dword [esp + 0x38]
mov edx, dword [eax - 0x6c]
call fcn.100214b0
mov eax, dword [esp + 0x20]
xor edx, edx
push edi
mov edi, dword [esp + 0x30]
mov ecx, ebp
mov eax, dword [eax + 0x14]
dec eax
div dword [esp + 0x2c]
inc eax
imul eax, ebx
imul ebx, edi
push eax
mov eax, dword [esp + 0x64]
push ebx
push dword [esp + 0x48]
mov edx, dword [eax]
mov eax, dword [esp + 0x50]
mov edx, dword [edx + eax - 0x6c]
call fcn.100214b0
mov ebx, dword [esp + 0x80]
add esp, 0x20
mov ecx, dword [esp + 0x10]
cmp esi, 1
jbe 0x100246d9
lea eax, [ebx + 1]
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov ecx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x18]
dec eax
div dword [esp + 0x34]
cmp esi, eax
jae 0x100246d9
cmp byte [esp + 0x70], 0
jne 0x100246d9
mov eax, dword [ecx + 0x14]
xor edx, edx
dec eax
div dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc eax
cmp edi, eax
jne 0x100246dd
cmp edi, 5
jbe 0x100246dd
cmp edx, 1
jne 0x100246dd
cmp byte [esp + 0x6c], 0
je 0x10024414
mov ecx, dword [esp + 0x54]
push edx
push esi
mov eax, dword [ecx]
call dword [eax + 0x24]
test eax, eax
jne 0x10024410
mov eax, dword [esp + 0x10]
xor edx, edx
push dword [esp + 0x78]
mov edi, dword [ebp]
mov eax, dword [eax + 0x14]
dec eax
div dword [esp + 0x1c]
mov edx, ebx
inc eax
push eax
push 1
push esi
push ecx
mov ecx, ebp
call fcn.10038400
add esp, 0x14
mov ecx, ebp
push eax
push 1
push esi
call dword [edi + 0x28]
jmp 0x10024467
mov ecx, dword [esp + 0x10]
push dword [esp + 0x74]
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
push 1
push esi
push ebx
push ecx
push ebp
push ecx
mov ecx, dword [esp + 0x80]
call fcn.10038580
mov ecx, dword [esp + 0x44]
add esp, 0x24
mov edi, eax
sub ecx, edi
push ecx
mov ecx, dword [esp + 0x28]
sub ecx, edi
push ecx
push dword [esp + 0x64]
mov ecx, dword [esp + 0x34]
call fcn.1001fb80
mov edx, dword [ebp]
add eax, edi
push eax
push 1
push esi
mov ecx, ebp
call dword [edx + 0x28]
mov edi, dword [esp + 0x1c]
mov ebx, 3
lea eax, [edi - 2]
mov dword [esp + 0x14], eax
cmp eax, ebx
jbe 0x10024568
nop
cmp byte [esp + 0x6c], 0
je 0x100244cb
mov ecx, dword [esp + 0x54]
push ebx
push esi
mov eax, dword [ecx]
call dword [eax + 0x24]
test eax, eax
jne 0x100244cb
mov eax, dword [esp + 0x10]
xor edx, edx
push dword [esp + 0x78]
mov edi, dword [ebp]
mov eax, dword [eax + 0x14]
dec eax
div dword [esp + 0x1c]
mov edx, dword [esp + 0x64]
inc eax
push eax
push ebx
push esi
push ecx
mov ecx, ebp
call fcn.10038400
add esp, 0x14
mov ecx, ebp
push eax
push ebx
push esi
call dword [edi + 0x28]
jmp 0x10024557
push dword [esp + 0x74]
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
push esi
push dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x78]
push ebp
push dword [esp + 0x30]
call fcn.100388b0
mov edi, dword [esp + 0x48]
mov ecx, eax
mov eax, dword [esp + 0x44]
sub edi, ecx
sub eax, ecx
mov dword [esp + 0x50], ecx
add esp, 0x24
mov dword [esp + 0x34], eax
cmp edi, eax
je 0x10024549
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x2c]
call fcn.10020da0
mov edx, dword [esp + 0x28]
push dword [esp + 0x34]
mov dword [esp + 0x48], eax
lea ecx, [edx + 4]
mov dword [esp + 0x40], ecx
mov ecx, dword [edx]
mov edx, edi
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x40]
call fcn.10035450
mov ecx, dword [esp + 0x30]
add esp, 4
mov edi, eax
mov edx, dword [ebp]
lea eax, [edi + ecx]
push eax
push ebx
push esi
mov ecx, ebp
call dword [edx + 0x28]
add ebx, 2
cmp ebx, dword [esp + 0x14]
jb 0x10024480
mov edi, dword [esp + 0x1c]
cmp ebx, edi
jae 0x10024657
cmp byte [esp + 0x6c], 0
je 0x100245bf
mov ecx, dword [esp + 0x54]
push ebx
push esi
mov eax, dword [ecx]
call dword [eax + 0x24]
test eax, eax
jne 0x100245bf
mov eax, dword [esp + 0x10]
xor edx, edx
push dword [esp + 0x78]
mov edi, dword [ebp]
mov eax, dword [eax + 0x14]
dec eax
div dword [esp + 0x1c]
mov edx, dword [esp + 0x64]
inc eax
push eax
push ebx
push esi
push ecx
mov ecx, ebp
call fcn.10038400
add esp, 0x14
mov ecx, ebp
push eax
push ebx
push esi
call dword [edi + 0x28]
mov edi, dword [esp + 0x1c]
jmp 0x1002464c
push dword [esp + 0x74]
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
push esi
push dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x78]
push ebp
push dword [esp + 0x30]
call fcn.10038580
mov ecx, dword [esp + 0x44]
mov edx, eax
mov eax, dword [esp + 0x48]
sub ecx, edx
sub eax, edx
mov dword [esp + 0x38], edx
add esp, 0x24
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], eax
cmp eax, ecx
je 0x1002463d
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x2c]
call fcn.10020da0
mov edx, dword [esp + 0x28]
push dword [esp + 0x34]
mov dword [esp + 0x48], eax
lea ecx, [edx + 4]
mov dword [esp + 0x40], ecx
mov ecx, dword [edx]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x40]
call fcn.10035450
add esp, 4
add eax, dword [esp + 0x14]
mov ecx, ebp
mov edx, dword [ebp]
push eax
push ebx
push esi
call dword [edx + 0x28]
add ebx, 2
cmp ebx, edi
jb 0x10024570
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x64], 0
jle 0x1002488b
cmp byte [esp + 0x6c], 0
je 0x1002488b
mov eax, dword [ecx + 0x14]
xor edx, edx
dec eax
div dword [esp + 0x18]
inc eax
cmp edi, eax
jae 0x1002488b
mov ebx, dword [esp + 0x60]
mov ecx, dword [esp + 0x54]
push edi
push esi
push ebx
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jne 0x10024849
mov eax, dword [esp + 0x10]
xor edx, edx
push dword [esp + 0x78]
mov edi, dword [ebp]
mov eax, dword [eax + 0x14]
dec eax
div dword [esp + 0x1c]
mov edx, ebx
inc eax
push eax
push dword [esp + 0x24]
push esi
push ecx
mov ecx, ebp
call fcn.10038400
add esp, 0x14
mov ecx, ebp
push eax
push dword [esp + 0x20]
push esi
push ebx
call dword [edi]
mov edi, dword [esp + 0x1c]
jmp 0x1002486d
mov edx, dword [esp + 0x14]
cmp edx, edi
jae 0x1002465b
cmp byte [esp + 0x6c], 0
je 0x1002473c
mov ecx, dword [esp + 0x54]
push edx
push esi
mov eax, dword [ecx]
call dword [eax + 0x24]
test eax, eax
jne 0x10024734
mov eax, dword [esp + 0x10]
xor edx, edx
push dword [esp + 0x78]
mov edi, dword [ebp]
mov eax, dword [eax + 0x14]
dec eax
div dword [esp + 0x1c]
mov edx, ebx
inc eax
push eax
push dword [esp + 0x1c]
push esi
push ecx
mov ecx, ebp
call fcn.10038400
add esp, 0x14
mov ecx, ebp
push eax
push dword [esp + 0x18]
push esi
call dword [edi + 0x28]
jmp 0x10024829
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp byte [esp + 0x70], 0
je 0x10024784
mov ecx, dword [ecx + 0x10]
push edx
push esi
push ebx
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jle 0x10024784
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
push edi
push esi
mov ecx, dword [eax + 0x10]
push ebx
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0x64]
sub ecx, eax
mov eax, dword [esp + 0x4c]
imul ecx, ecx, 0x6c
push edi
push esi
mov eax, dword [eax]
push ebx
mov ecx, dword [ecx + eax]
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x1002481e
push dword [esp + 0x74]
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x24]
mov edx, dword [esp + 0x54]
push eax
lea eax, [esp + 0x2c]
push eax
push edi
push esi
push ebx
push ecx
mov ecx, dword [esp + 0x78]
push ebp
push dword [esp + 0x30]
call fcn.10038580
mov edx, dword [esp + 0x44]
mov ecx, eax
mov eax, dword [esp + 0x48]
add esp, 0x24
cmp byte [esp + 0x70], 0
mov dword [esp + 0x34], ecx
je 0x100247d2
cmp ecx, edx
jg 0x100247cc
cmp ecx, eax
jge 0x100247d2
mov ecx, eax
mov dword [esp + 0x34], eax
sub edx, ecx
sub eax, ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], eax
cmp eax, edx
je 0x1002481c
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x2c]
call fcn.10020da0
mov edx, dword [esp + 0x28]
push dword [esp + 0x2c]
mov dword [esp + 0x48], eax
lea ecx, [edx + 4]
mov dword [esp + 0x40], ecx
mov ecx, dword [edx]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x40]
call fcn.10035450
mov ecx, dword [esp + 0x38]
add esp, 4
add eax, ecx
mov edx, dword [ebp]
mov ecx, ebp
push eax
push edi
push esi
call dword [edx + 0x28]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
add edx, 2
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
cmp edx, edi
jb 0x100246e5
jmp 0x1002465b
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
push edi
push esi
mov eax, dword [eax]
push ebx
mov ecx, dword [eax + ecx - 0x6c]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0x10]
push eax
push edi
push esi
mov ecx, dword [ecx]
push ebx
mov edx, dword [ecx]
call dword [edx]
mov eax, dword [esp + 0x10]
xor edx, edx
add edi, 2
mov dword [esp + 0x1c], edi
mov eax, dword [eax + 0x14]
dec eax
div dword [esp + 0x18]
inc eax
cmp edi, eax
jb 0x10024688
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret