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

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x38]
push edi
lea eax, [ebp*2]
add eax, ebp
lea ecx, [esi + esi]
cmp ecx, eax
jl 0x100f10af
lea ecx, [esi + 2]
mov eax, 0xaaaaaaab
mul ecx
mov ebx, edx
shr ebx, 1
jmp 0x100f10b4
lea ebx, [ebp + 1]
sar ebx, 1
mov ecx, dword [esp + 0x38]
lea eax, [ebx + ebx]
mov edi, dword [esp + 0x34]
sub esi, eax
mov dword [esp + 0x2c], eax
sub ebp, ebx
push esi
lea eax, [ebx*8]
mov dword [esp + 0x40], esi
add eax, ecx
push eax
push ebx
push ecx
push edi
mov dword [esp + 0x3c], eax
call fcn.100f1000
mov ecx, eax
add esp, 0x14
mov dword [esp + 0x18], ecx
lea eax, [ebx*4]
test ecx, ecx
jne 0x100f1136
mov esi, dword [esp + 0x38]
add esi, eax
push ebx
push esi
push edi
call fcn.100ecc80
add esp, 0xc
test eax, eax
jns 0x100f112f
push ebx
push edi
lea eax, [ebx*8]
add eax, edi
push esi
push eax
call fcn.1006fcf0
add esp, 0x10
mov dword [esp + 0x24], 0
mov eax, 1
jmp 0x100f115d
lea eax, [ebx*4]
mov esi, dword [esp + 0x38]
add esi, eax
lea eax, [ebx*8]
push ebx
push esi
add eax, edi
push edi
push eax
call fcn.1006fcf0
mov ecx, dword [esp + 0x28]
add esp, 0x10
sub ecx, eax
xor eax, eax
mov dword [esp + 0x24], ecx
push ebx
push esi
push edi
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
call fcn.1006fc40
add dword [esp + 0x28], eax
add esp, 0x10
mov esi, dword [esp + 0x40]
lea eax, [ebx*4]
lea ecx, [eax + esi]
add eax, edi
mov dword [esp + 0x44], ecx
cmp ebp, ebx
jne 0x100f11e6
push ebx
push ecx
push esi
push eax
call fcn.1006fc40
push ebx
push dword [esp + 0x58]
mov dword [esp + 0x38], eax
push esi
call fcn.100ecc80
mov esi, eax
lea ecx, [ebx + ebx*2]
mov eax, dword [esp + 0x60]
lea edx, [edi + ecx*4]
mov ecx, dword [esp + 0x5c]
test esi, esi
push ebx
cmovns ecx, eax
mov dword [esp + 0x30], edx
cmovns eax, dword [esp + 0x60]
push ecx
push eax
push edx
call fcn.1006fcf0
mov eax, dword [esp + 0x48]
add esp, 0x2c
xor eax, 1
test esi, esi
cmovns eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jmp 0x100f1285
push ebp
push ecx
push ebx
push esi
push eax
call fcn.100f1000
mov edx, dword [esp + 0x58]
mov esi, ebx
add esp, 0x14
mov dword [esp + 0x20], eax
sub esi, ebp
mov ecx, edx
mov eax, esi
lea ecx, [ecx - 4]
dec eax
cmp dword [ecx], 0
jne 0x100f126b
test eax, eax
jne 0x100f1203
push ebp
push edx
push dword [esp + 0x48]
call fcn.100ecc80
add esp, 0xc
test eax, eax
jns 0x100f1267
push ebp
push dword [esp + 0x44]
lea eax, [ebx + ebx*2]
push dword [esp + 0x4c]
lea eax, [edi + eax*4]
push eax
mov dword [esp + 0x20], eax
call fcn.1006fcf0
add esp, 0x10
test esi, esi
je 0x100f1260
lea eax, [ebx*2]
mov ecx, esi
add eax, ebp
add eax, ebx
lea edi, [edi + eax*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x34]
nop word [eax + eax]
xor dword [esp + 0x14], 1
jmp 0x100f1285
mov edx, dword [esp + 0x44]
push ebp
push edx
push ebx
push dword [esp + 0x4c]
lea eax, [ebx + ebx*2]
lea eax, [edi + eax*4]
push eax
mov dword [esp + 0x24], eax
call fcn.100e8640
add esp, 0x14
mov esi, dword [esp + 0x48]
lea eax, [ebx*4]
push ebx
add eax, edi
push eax
push edi
push esi
call fcn.100f0a70
add esp, 0x10
cmp dword [esp + 0x18], 1
jne 0x100f12ca
lea edx, [ebx*4]
push ebx
lea eax, [edx + esi]
lea ecx, [edx + edi]
mov dword [esp + 0x38], eax
push ecx
push eax
push eax
call fcn.1006fc40
mov ecx, eax
add esp, 0x10
mov eax, dword [esp + 0x34]
jmp 0x100f1301
jbe 0x100f12f2
lea edx, [ebx*4]
push 2
push ebx
lea ecx, [edx + edi]
lea eax, [edx + esi]
push ecx
push eax
mov dword [esp + 0x44], eax
call fcn.10070967
mov ecx, eax
add esp, 0x10
mov eax, dword [esp + 0x34]
jmp 0x100f1301
lea eax, [ebx*4]
xor ecx, ecx
add eax, esi
mov dword [esp + 0x34], eax
cmp dword [esp + 0x20], 0
mov dword [esp + 0x1c], ecx
je 0x100f1322
push ebx
push edi
push eax
push eax
call fcn.1006fc40
add eax, dword [esp + 0x28]
add esp, 0x10
mov ecx, dword [esp + 0x1c]
add ecx, eax
push ebx
push dword [esp + 0x14]
lea eax, [ebx*8]
lea edx, [eax + esi]
add eax, edi
mov dword [edx], ecx
push eax
push edi
mov dword [esp + 0x30], edx
call fcn.100f0a70
mov eax, dword [esp + 0x34]
add esp, 0x10
test eax, eax
je 0x100f1363
push ebx
push dword [esp + 0x14]
lea eax, [ebx*4]
add eax, edi
push eax
push eax
call fcn.1006fc40
add esp, 0x10
mov dword [edi + ebx*8], eax
mov eax, dword [esp + 0x2c]
inc eax
cmp dword [esp + 0x14], 0
push eax
push edi
push esi
push esi
je 0x100f137d
call fcn.1006fcf0
jmp 0x100f1382
call fcn.1006fc40
add esp, 0x10
lea eax, [ebx*2 + 1]
push 1
push eax
push esi
push esi
call fcn.1006ff38
push ebx
push dword [esp + 0x48]
lea eax, [ebx*8]
add eax, edi
push esi
push eax
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
call fcn.1006fc40
mov esi, dword [esp + 0x54]
add esp, 0x20
mov ecx, dword [esp + 0x20]
mov edx, dword [esi]
add edx, eax
add edx, dword [ecx]
mov dword [esi], edx
mov ecx, dword [ecx]
add ecx, eax
cmp edx, ecx
jae 0x100f13d9
nop dword [eax]
add dword [esi + 4], 1
lea esi, [esi + 4]
je 0x100f13d0
cmp dword [esp + 0x14], 0
mov esi, dword [esp + 0x48]
push ebx
push edi
push esi
push esi
je 0x100f142b
call fcn.1006fc40
push eax
push ebx
lea eax, [ebx*4]
add eax, edi
push eax
lea eax, [ebx*8]
add eax, edi
push eax
push eax
call fcn.1006fce7
mov ecx, dword [esp + 0x58]
add esp, 0x24
mov edx, dword [esp + 0x18]
add edx, eax
mov eax, dword [ecx]
add eax, edx
mov dword [ecx], eax
cmp eax, edx
jae 0x100f1476
add dword [ecx + 4], 1
lea ecx, [ecx + 4]
je 0x100f1420
jmp 0x100f1476
call fcn.1006fcf0
push eax
push ebx
lea eax, [ebx*4]
add eax, edi
push eax
lea eax, [ebx*8]
add eax, edi
push eax
push eax
call fcn.1006fd97
mov edx, dword [esp + 0x58]
add esp, 0x24
add dword [esp + 0x18], eax
mov ecx, dword [edx]
mov eax, ecx
sub eax, dword [esp + 0x18]
mov dword [edx], eax
cmp ecx, dword [esp + 0x18]
jae 0x100f1476
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
lea eax, [ecx - 1]
mov dword [edx], eax
test ecx, ecx
je 0x100f1467
push ebx
push dword [esp + 0x44]
push dword [esp + 0x40]
push edi
call fcn.100f0a70
mov ecx, dword [esp + 0x4c]
add esp, 0x10
cmp ecx, ebp
jle 0x100f1496
mov edx, ecx
mov eax, ebp
jmp 0x100f149a
mov edx, ebp
mov eax, ecx
push eax
mov eax, dword [esp + 0x48]
cmovle eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x30]
cmovle eax, dword [esp + 0x4c]
push edx
push eax
push dword [esp + 0x20]
call fcn.100ea720
push ebx
push dword [esp + 0x28]
lea eax, [ebx*4]
add eax, edi
push eax
push eax
call fcn.1006fcf0
mov ecx, dword [esp + 0x44]
push eax
push ebx
push edi
mov ecx, dword [ecx]
add ecx, eax
lea eax, [ebx*8]
add eax, edi
mov dword [esp + 0x68], ecx
push eax
push eax
call fcn.1006fd97
push eax
push ebx
lea eax, [ebx*4]
add eax, edi
push eax
push dword [esp + 0x78]
push dword [esp + 0x58]
call fcn.1006fd97
sub dword [esp + 0x84], eax
add esp, 0x4c
lea eax, [ebx + ebx*2]
push ebx
push esi
push eax
lea eax, [ebx*4]
add eax, edi
push eax
push eax
call fcn.100f1000
mov ecx, dword [esp + 0x50]
add esp, 0x14
add dword [esp + 0x38], eax
lea eax, [ecx + ebp]
cmp eax, ebx
jle 0x100f1579
mov esi, ebx
lea eax, [ebx + ebx]
sub ebp, ebx
shl esi, 4
add ebp, ecx
add esi, edi
push ebp
push esi
push eax
lea eax, [ebx*8]
add eax, edi
push eax
push eax
call fcn.100e8640
mov ecx, dword [esp + 0x4c]
add esp, 0x14
sub ecx, eax
mov eax, dword [esi]
add eax, ecx
mov dword [esi], eax
cmp eax, ecx
jae 0x100f1579
nop dword [eax]
add dword [esi + 4], 1
lea esi, [esi + 4]
je 0x100f1570
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret