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

Disassembly:
fld1
sub esp, 0x14c
push ebx
push ebp
push esi
mov esi, dword [0x10007378]
mov eax, dword [esi + 0x50]
fstp dword [esi + 0x6c]
push edi
mov dword [esi + 0x58], ecx
cmp eax, 0x28
jbe 0x1000107c
lea ebx, [esi + 0x68]
lea edi, [esi + 0x64]
mov dword [esp + 0x20], ebx
mov dword [ebx], 0x400
mov dword [esp + 0x1c], edi
mov dword [edi], 0x400
jmp 0x100010b0
cmp eax, 0x14
lea eax, [esi + 0x68]
mov dword [esp + 0x20], eax
mov ebx, eax
jbe 0x1000109b
mov dword [eax], 0x200
lea eax, [esi + 0x64]
mov dword [eax], 0x200
jmp 0x100010aa
mov dword [eax], 0x100
lea eax, [esi + 0x64]
mov dword [eax], 0x100
mov edi, eax
mov dword [esp + 0x1c], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x80]
push edx
push ecx
call eax
mov ecx, dword [edi]
mov eax, dword [esp + 0xd8]
cmp ecx, eax
jbe 0x100010fc
mov edx, eax
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
test edx, edx
jge 0x100010e1
fadd dword [0x10006260]
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
test ecx, ecx
jge 0x100010f3
fadd dword [0x10006260]
fdivp st(1)
mov dword [ebx], eax
mov dword [edi], eax
fstp dword [esi + 0x6c]
mov eax, dword [esi + 0x58]
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
lea ecx, [esi + 0x5c]
push ecx
push 1
push 0x1a
push 0
mov dword [esp + 0x50], ecx
mov ecx, dword [ebx]
push 1
push ecx
mov ecx, dword [edi]
push ecx
push eax
call edx
test eax, eax
jl 0x100014d7
mov ecx, dword [ebx]
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov eax, dword [edi]
mov dword [esp + 0x50], eax
neg ecx
mov edx, 1
mov eax, 0x20
push 0
mov dword [esp + 0x50], 0x28
mov dword [esp + 0x58], ecx
mov word [esp + 0x5c], dx
mov dword [esp + 0x60], 0
mov word [esp + 0x5e], ax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
push 0
lea ecx, [esp + 0x4c]
push ecx
push 0
lea edx, [esp + 0x5c]
mov ebx, eax
push edx
push ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push 1
mov ebp, eax
push ebx
mov dword [esp + 0x50], ebp
call dword [sym.imp.GDI32.dll_SetMapMode]
push 0x48
push 0x5a
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmul dword [esi + 0x6c]
call fcn.100050e0
push eax
mov eax, dword [esi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [esi + 0x54]
push esi
push 2
push 4
push 0
mov ecx, edx
and cl, 1
push 0
movzx ecx, cl
push 1
mov edi, eax
push 0
neg edi
neg ecx
sbb ecx, ecx
push 0
shr edx, 1
and ecx, 0x12c
and edx, 1
push edx
add ecx, 0x190
push ecx
push 0
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_CreateFontA]
mov edi, eax
mov dword [esp + 0x34], edi
test edi, edi
jne 0x10001233
mov eax, 0x80004005
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret
push ebp
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call ebp
push edi
push ebx
call ebp
push 0xffffff
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
lea eax, [esp + 0x38]
push eax
push 1
push 0x10006138
mov edx, 0x78
push ebx
mov dword [esp + 0x28], 0
mov word [esp + 0x34], dx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
fild dword [esp + 0x3c]
sub esp, 8
fmul qword [0x10006280]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp qword [esp]
call dword [sym.imp.MSVCR90.dll_ceil]
fstp dword [esp + 0x1c]
add esp, 8
fld dword [esp + 0x14]
lea ebp, [esi + 0x74]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x28], eax
fldcw word [esp + 0x28]
fistp qword [esp + 0x28]
mov edi, dword [esp + 0x28]
mov dword [esi + 0x670], edi
fldcw word [esp + 0x14]
mov byte [esp + 0x14], 0x20
mov cl, byte [esp + 0x14]
lea edx, [esp + 0x38]
push edx
push 1
lea eax, [esp + 0x2c]
push eax
push ebx
mov byte [esp + 0x34], cl
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
lea edx, [ecx + edi + 1]
cmp edx, dword [eax]
jbe 0x1000131e
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esi + 0x670]
lea eax, [edx + ecx + 1]
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
push 0
push 1
lea ecx, [esp + 0x2c]
push ecx
push 0
push 2
push edx
push edi
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, edi
sub eax, dword [esi + 0x670]
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
test eax, eax
jge 0x10001352
fadd dword [0x10006260]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
fild dword [ecx]
test edx, edx
jge 0x10001364
fadd dword [0x10006260]
fdivp st(1)
mov ecx, dword [esp + 0x18]
mov eax, ecx
mov dword [esp + 0x28], eax
fstp dword [ebp - 4]
fild dword [esp + 0x28]
test eax, eax
jge 0x10001381
fadd dword [0x10006260]
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
fild dword [edx]
test eax, eax
jge 0x10001393
fadd dword [0x10006260]
fdivp st(1)
mov eax, dword [esp + 0x38]
fstp dword [ebp]
mov edx, dword [esi + 0x670]
add edx, eax
add edx, edi
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
test edx, edx
jge 0x100013b8
fadd dword [0x10006260]
mov edx, dword [esp + 0x1c]
mov edx, dword [edx]
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
test edx, edx
jge 0x100013d0
fadd dword [0x10006260]
fdivp st(1)
mov edx, dword [esp + 0x3c]
add edx, ecx
mov dword [esp + 0x28], edx
fstp dword [ebp + 4]
fild dword [esp + 0x28]
test edx, edx
jge 0x100013ed
fadd dword [0x10006260]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
fild dword [ecx]
test edx, edx
jge 0x100013ff
fadd dword [0x10006260]
fdivp st(1)
add ebp, 0x10
fstp dword [ebp - 8]
mov ecx, dword [esi + 0x670]
lea edx, [eax + ecx*2]
mov al, byte [esp + 0x14]
inc al
add edi, edx
cmp al, 0x7f
mov byte [esp + 0x14], al
jl 0x100012dd
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov ecx, dword [eax]
push 0
push 0
lea edx, [esp + 0x80]
push edx
push 0
push eax
mov eax, dword [ecx + 0x40]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x7c]
xor edi, edi
mov dword [esp + 0x18], edx
cmp dword [ecx], edi
jbe 0x100014aa
mov esi, dword [esp + 0x1c]
xor ecx, ecx
cmp dword [esi], ecx
jbe 0x10001499
lea esp, [esp]
mov eax, dword [esi]
mov ebp, dword [esp + 0x44]
imul eax, edi
add eax, ecx
mov eax, dword [ebp + eax*4]
shr eax, 4
and al, 0xf
jbe 0x10001488
movzx ax, al
shl ax, 0xc
mov ebp, 0xfff
or ax, bp
jmp 0x1000148a
xor eax, eax
mov word [edx], ax
inc ecx
add edx, 2
cmp ecx, dword [esi]
jb 0x10001460
mov edx, dword [esp + 0x18]
add edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x20]
inc edi
mov dword [esp + 0x18], edx
cmp edi, dword [ecx]
jb 0x10001452
mov edx, dword [esp + 0x40]
mov eax, dword [edx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push eax
call edx
mov eax, dword [esp + 0x48]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call esi
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x34]
push ecx
call esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret