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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xb4
mov eax, dword [0x10178d58]
xor eax, esp
mov dword [esp + 0xb0], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov ecx, 6
mov esi, 0x1016e990
lea edi, [esp + 0xa0]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [str.ABCDEFGHJKLM]
mov dword [esp + 0x20], eax
mov eax, dword [0x1016e984]
mov dword [esp + 0x84], eax
mov al, byte [0x1016e98c]
mov dword [esp + 0x80], ecx
mov ecx, dword [0x1016e988]
mov byte [esp + 0x8c], al
mov eax, dword [0x1016e974]
mov dword [esp + 0x88], ecx
mov ecx, dword [0x1016e970]
mov dword [esp + 0x94], eax
mov eax, dword [0x1016e97c]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x90], ecx
mov ecx, dword [0x1016e978]
mov dword [esp + 0x9c], eax
xor eax, eax
test esi, esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x98], ecx
jle 0x1008c01d
nop
mov ecx, dword [edx + eax*4]
add eax, 1
cmp eax, esi
mov byte [ecx], 0
jl 0x1008c010
mov eax, dword [ebp + 0x14]
cmp eax, 2
jge 0x1008c02e
mov dword [ebp + 0x14], 2
jmp 0x1008c03a
cmp eax, 9
jle 0x1008c03a
mov dword [ebp + 0x14], 9
mov edx, dword [ebp + 0x14]
fld qword [0x1015fd40]
add edx, 0xfffffffe
mov dword [esp + 0x3c], edx
fild dword [esp + 0x3c]
call sub.MSVCR80.dll__CIpow
fst qword [esp + 0x58]
cmp dword [ebp + 0x18], 0
je 0x1008c065
fdivr qword [0x100dc320]
jmp 0x1008c069
fstp st(0)
fldz
push ebx
fstp qword [esp + 0x54]
call sym.pe.dll_pe_geogcs_unit
push eax
call sym.pe.dll_pe_unit_factor
fst qword [esp + 0x60]
xor eax, eax
test esi, esi
mov dword [esp + 0x38], eax
jle 0x1008c532
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
jmp 0x1008c09d
fld qword [esp + 0x60]
mov eax, dword [esp + 0x20]
fld qword [eax]
sub esp, 8
fmul st(1)
fld qword [eax + 8]
fmulp st(2)
fxch st(1)
fstp qword [esp + 0x38]
fstp qword [esp]
call sym.pe.dll_pe_delta
fld qword [0x100dd1e0]
fmul st(1), st(0)
fmul qword [esp + 0x30]
fst qword [esp + 0x30]
fldz
fcom st(1)
fnstsw ax
fld st(1)
test ah, 0x41
jne 0x1008c0d6
fchs
fld qword [0x100dd268]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x1008c10e
fxch st(2)
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x1008c0fe
fld1
fmulp st(2)
fxch st(1)
fstp qword [esp + 0x30]
jmp 0x1008c112
fld qword [0x100dc2b8]
fmulp st(2)
fxch st(1)
fstp qword [esp + 0x30]
jmp 0x1008c112
fstp st(2)
fstp st(1)
fxch st(1)
fmul qword [0x100dcc00]
fadd qword [0x1016e968]
fadd qword [esp + 0x50]
fst qword [esp + 0x40]
fcom st(1)
fnstsw ax
fld st(0)
test ah, 5
jp 0x1008c135
fchs
fcomp qword [0x100dc318]
fnstsw ax
test ah, 0x41
jnp 0x1008c15c
fstp st(1)
call sub.MSVCR80.dll__CIlog10
fldz
fcomp st(1)
fnstsw ax
fld qword [esp + 0x40]
test ah, 5
jp 0x1008c15c
xor edi, edi
jmp 0x1008c161
mov edi, 1
call fcn.100db3f0
mov esi, eax
mov dword [esp + 0x1c], esi
call fcn.100db3f0
fld qword [0x1015fd40]
sub eax, edi
sub eax, 0xf
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
call sub.MSVCR80.dll__CIpow
fild dword [esp + 0x1c]
fld qword [esp + 0x40]
fld st(0)
fsubrp st(2)
fxch st(2)
faddp st(1)
fmul qword [esp + 0x58]
call fcn.100db3f0
fld qword [0x1016e960]
fdivr st(1)
mov dword [esp + 0x40], eax
call fcn.100db3f0
mov ebx, eax
cmp ebx, 0x17
jle 0x1008c1bf
mov ebx, 0x17
mov eax, ebx
imul eax, eax, 0x384
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fsubp st(1)
fld qword [0x100dcc00]
fdiv st(1), st(0)
fxch st(1)
call fcn.100db3f0
mov ecx, eax
cmp ecx, 0xe
mov dword [esp + 0x2c], ecx
jle 0x1008c1f7
mov dword [esp + 0x2c], 0xe
mov ecx, dword [esp + 0x2c]
fmul qword [esp + 0x30]
mov eax, ebx
shl eax, 4
sub eax, ebx
fadd qword [0x1016e958]
add eax, ecx
mov ecx, eax
shl ecx, 4
fadd qword [esp + 0x50]
sub ecx, eax
add ecx, ecx
add ecx, ecx
fst qword [esp + 0x30]
sub esi, ecx
fldz
mov dword [esp + 0x4c], esi
fcom st(1)
fnstsw ax
fld st(1)
test ah, 0x41
jne 0x1008c232
fchs
fcomp qword [0x100dc318]
fnstsw ax
test ah, 0x41
jnp 0x1008c528
fstp st(0)
call sub.MSVCR80.dll__CIlog10
fldz
fcomp st(1)
fnstsw ax
fld qword [esp + 0x30]
test ah, 5
jp 0x1008c526
xor esi, esi
fxch st(1)
fxch st(1)
call fcn.100db3f0
mov edi, eax
mov dword [esp + 0x28], edi
call fcn.100db3f0
fld qword [0x1015fd40]
sub eax, esi
sub eax, 0xf
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
call sub.MSVCR80.dll__CIpow
fild dword [esp + 0x28]
fld qword [esp + 0x30]
fld st(0)
fsubrp st(2)
fxch st(2)
faddp st(1)
fmul qword [esp + 0x58]
call fcn.100db3f0
fld qword [0x1016e960]
fdivr st(1)
mov dword [esp + 0x1c], eax
call fcn.100db3f0
mov esi, eax
cmp esi, 0xb
jle 0x1008c2c1
mov esi, 0xb
mov edx, esi
imul edx, edx, 0x384
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
fsubp st(1)
fdiv qword [0x100dcc00]
call fcn.100db3f0
cmp eax, 0xe
jle 0x1008c2e8
mov eax, 0xe
mov ecx, esi
shl ecx, 4
sub ecx, esi
add ecx, eax
movsx eax, byte [esp + eax + 0x90]
mov edx, ecx
shl edx, 4
sub edx, ecx
mov ecx, dword [esp + 0x2c]
add edx, edx
add edx, edx
push eax
movsx eax, byte [esp + esi + 0x84]
sub edi, edx
movsx edx, byte [esp + ecx + 0x94]
movsx ecx, byte [esp + ebx + 0xa4]
push edx
push eax
push ecx
lea edx, [esp + 0x78]
push str._c_c_c_c
push edx
mov dword [esp + 0x40], edi
call dword [sym.imp.MSVCR80.dll_sprintf]
lea eax, [esp + 0x80]
add esp, 0x18
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1008c346
mov ebx, dword [esp + 0x38]
sub eax, ecx
mov esi, ecx
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + ebx*4]
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1008c361
mov edx, dword [esp + 0x4c]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push edx
mov ecx, eax
lea eax, [esp + 0x6c]
and ecx, 3
push str._02d
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCR80.dll_sprintf]
lea eax, [esp + 0x74]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1008c397
sub eax, ecx
mov esi, ecx
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + ebx*4]
add edi, 0xffffffff
mov edi, edi
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1008c3b0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp dword [ebp + 0x14], 2
rep movsb byte es:[edi], byte [esi]
jle 0x1008c438
mov edx, dword [esp + 0x3c]
mov esi, dword [sym.imp.MSVCR80.dll_sprintf]
push edx
lea eax, [esp + 0x7c]
push str.__0_dd
push eax
call esi
mov ecx, dword [esp + 0x4c]
push ecx
lea edx, [esp + 0x88]
push edx
lea eax, [esp + 0x7c]
push eax
call esi
lea eax, [esp + 0x80]
add esp, 0x18
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1008c405
sub eax, ecx
mov esi, ecx
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + ebx*4]
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1008c420
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x6c]
push str._02d
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
lea eax, [esp + 0x74]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1008c456
sub eax, ecx
mov esi, ecx
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + ebx*4]
add edi, 0xffffffff
lea ecx, [ecx]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1008c470
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp dword [ebp + 0x14], 2
rep movsb byte es:[edi], byte [esi]
jle 0x1008c4f8
mov edx, dword [esp + 0x3c]
mov esi, dword [sym.imp.MSVCR80.dll_sprintf]
push edx
lea eax, [esp + 0x7c]
push str.__0_dd
push eax
call esi
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x88]
push edx
lea eax, [esp + 0x7c]
push eax
call esi
lea eax, [esp + 0x80]
add esp, 0x18
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1008c4c5
sub eax, ecx
mov esi, ecx
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + ebx*4]
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1008c4e0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [esp + 0x20], 0x10
add ebx, 1
cmp ebx, dword [ebp + 0xc]
mov dword [esp + 0x38], ebx
jl 0x1008c095
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.100db39a
mov esp, ebp
pop ebp
ret 0x18
fxch st(1)
mov esi, 1
jmp 0x1008c261
mov ecx, dword [esp + 0xbc]
fstp st(0)
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100db39a
mov esp, ebp
pop ebp
ret 0x18