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

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x3c]
mov ebp, edi
sar ebp, 8
mov edx, dword [esi + 0x78]
mov ebx, edx
mov eax, dword [esi + 0x54]
sar ebx, 8
mov dword [esp + 0x1c], ebp
cmp ebx, eax
jl 0x102f273f
cmp ebp, eax
jge 0x102f29cf
mov eax, dword [esi + 0x50]
cmp ebx, eax
jge 0x102f274e
cmp ebp, eax
jl 0x102f29cf
mov eax, ebx
mov ecx, edx
shl eax, 8
sub ecx, eax
mov eax, ebp
shl eax, 8
sub edi, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edi
cmp ebx, ebp
jne 0x102f2778
push edi
push dword [esp + 0x3c]
push ecx
push dword [esi + 0x74]
jmp 0x102f29c5
mov edi, dword [esi + 0x74]
mov eax, dword [esp + 0x38]
sub eax, edi
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x3c]
sub edi, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edi
test eax, eax
jne 0x102f28b8
mov ecx, dword [esp + 0x34]
mov edx, ecx
sar edx, 8
mov eax, edx
mov dword [esp + 0x10], edx
shl eax, 8
sub ecx, eax
xor eax, eax
add ecx, ecx
test edi, edi
mov dword [esp + 0x34], ecx
setg al
xor ecx, ecx
test edi, edi
mov edi, dword [esp + 0x34]
lea eax, [eax*2 - 1]
mov dword [esp + 0x14], eax
mov eax, 0x100
cmovle eax, ecx
add ebx, dword [esp + 0x14]
mov ecx, eax
mov dword [esp + 0x18], eax
sub ecx, dword [esp + 0x24]
add dword [esi + 0x5c], ecx
mov eax, ecx
imul eax, edi
push ebx
push edx
push esi
add dword [esi + 0x58], eax
call fcn.102f2cd0
mov eax, dword [esp + 0x24]
add esp, 0xc
lea edx, [eax*2 - 0x100]
mov eax, edx
mov dword [esp + 0x24], edx
imul eax, edi
mov dword [esp + 0x20], eax
cmp ebx, ebp
je 0x102f2888
mov ecx, dword [esp + 0x10]
nop dword [eax + eax]
add dword [esi + 0x58], eax
mov edi, ecx
add dword [esi + 0x5c], edx
add ebx, dword [esp + 0x14]
mov eax, dword [esi + 0x48]
cmp ecx, eax
jge 0x102f2836
lea edi, [eax - 1]
cmp dword [esi + 0x60], 0
jne 0x102f284d
push esi
call fcn.102f21a0
mov ecx, dword [esp + 0x14]
add esp, 4
mov edx, dword [esp + 0x24]
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], ebx
cmp ebx, dword [esi + 0x54]
jge 0x102f2874
cmp ebx, dword [esi + 0x50]
jl 0x102f2874
cmp edi, dword [esi + 0x4c]
jge 0x102f2874
xor eax, eax
jmp 0x102f2879
mov eax, 1
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x20]
cmp ebx, ebp
jne 0x102f2820
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
add eax, 0xffffff00
add ecx, eax
mov eax, ecx
imul eax, edi
pop edi
add dword [esi + 0x58], eax
mov eax, dword [esp + 0x34]
add dword [esi + 0x5c], ecx
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x78], eax
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
jle 0x102f28d5
mov edx, 0x100
mov dword [esp + 0x10], 0x100
mov dword [esp + 0x14], 1
sub edx, ecx
jmp 0x102f28ed
neg edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xffffffff
mov edx, ecx
mov dword [esp + 0x20], edi
imul eax, edx
cdq
idiv edi
mov ebp, edx
test ebp, ebp
jns 0x102f28fc
dec eax
add ebp, edi
push dword [esp + 0x10]
mov edx, dword [esp + 0x38]
add eax, edx
push eax
push ecx
push edx
push ebx
push esi
mov dword [esp + 0x4c], eax
call fcn.102f2aa0
add ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x4c]
push ebx
sar eax, 8
push eax
push esi
call fcn.102f2cd0
add esp, 0x24
cmp ebx, dword [esp + 0x1c]
je 0x102f29ae
mov eax, dword [esp + 0x18]
shl eax, 8
cdq
idiv edi
mov ecx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
test ecx, ecx
jns 0x102f2953
dec eax
add ecx, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x10]
mov ecx, 0x100
sub ecx, edx
mov dword [esp + 0x2c], ecx
add ebp, dword [esp + 0x18]
mov ecx, eax
cmp ebp, edi
jl 0x102f2971
sub ebp, edi
lea ecx, [eax + 1]
mov eax, dword [esp + 0x34]
push edx
lea edi, [eax + ecx]
push edi
push dword [esp + 0x34]
push eax
push ebx
push esi
call fcn.102f2aa0
add ebx, dword [esp + 0x2c]
mov dword [esp + 0x4c], edi
push ebx
sar edi, 8
push edi
push esi
call fcn.102f2cd0
mov edi, dword [esp + 0x44]
add esp, 0x24
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
cmp ebx, dword [esp + 0x1c]
jne 0x102f2962
mov eax, dword [esp + 0x28]
push eax
push dword [esp + 0x3c]
mov eax, 0x100
sub eax, dword [esp + 0x18]
push eax
push dword [esp + 0x40]
push ebx
push esi
call fcn.102f2aa0
add esp, 0x18
mov eax, dword [esp + 0x38]
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x3c]
pop edi
mov dword [esi + 0x78], eax
pop esi
pop ebp
pop ebx
add esp, 0x20
ret