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

Disassembly:
fld1
sub esp, 0x198
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x50]
fstp dword [esi + 0x6c]
mov ecx, dword [esp + 0x1a4]
push edi
mov dword [esi + 0x58], ecx
cmp eax, 0x28
jbe 0x100024be
lea ebx, [esi + 0x68]
lea edi, [esi + 0x64]
mov dword [esp + 0x18], ebx
mov dword [ebx], 0x400
mov dword [esp + 0x14], edi
mov dword [edi], 0x400
jmp 0x100024f2
cmp eax, 0x14
lea eax, [esi + 0x68]
mov dword [esp + 0x18], eax
mov ebx, eax
jbe 0x100024dd
mov dword [eax], 0x200
lea eax, [esi + 0x64]
mov dword [eax], 0x200
jmp 0x100024ec
mov dword [eax], 0x100
lea eax, [esi + 0x64]
mov dword [eax], 0x100
mov edi, eax
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x74]
push edx
push ecx
call eax
mov ecx, dword [edi]
mov eax, dword [esp + 0xcc]
cmp ecx, eax
jbe 0x1000253b
mov edx, eax
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
test edx, edx
jge 0x10002520
fadd dword [0x100432ec]
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
test ecx, ecx
jge 0x10002532
fadd dword [0x100432ec]
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 + 0x5c]
push 0
lea ecx, [esi + 0x5c]
push ecx
push 1
push 0x1a
push 0
mov dword [esp + 0x48], ecx
mov ecx, dword [ebx]
push 1
push ecx
mov ecx, dword [edi]
push ecx
push eax
call edx
test eax, eax
jl 0x10002918
mov ecx, dword [ebx]
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov eax, dword [edi]
push ebp
mov dword [esp + 0x48], eax
neg ecx
mov edx, 1
mov eax, 0x20
push 0
mov dword [esp + 0x48], 0x28
mov dword [esp + 0x50], ecx
mov word [esp + 0x54], dx
mov dword [esp + 0x58], 0
mov word [esp + 0x56], ax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
lea edx, [esp + 0x54]
mov ebx, eax
push edx
push ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push 1
mov ebp, eax
push ebx
mov dword [esp + 0x48], ebp
call dword [sym.imp.GDI32.dll_SetMapMode]
push 0x48
push 0x5a
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul dword [esi + 0x6c]
call fcn.10005230
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 + 0x2c], edi
test edi, edi
jne 0x10002677
pop ebp
pop edi
pop esi
mov eax, 0x80004005
pop ebx
add esp, 0x198
ret 4
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 + 0x30]
push eax
push 1
push 0x100432e8
mov edx, 0x78
push ebx
mov dword [esp + 0x24], 0
mov word [esp + 0x30], dx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
fild dword [esp + 0x34]
sub esp, 8
fmul qword [0x100432e0]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp qword [esp]
call dword [sym.imp.MSVCR90.dll_ceil]
fstp dword [esp + 0x18]
add esp, 8
fld dword [esp + 0x10]
lea ebp, [esi + 0x74]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
or eax, 0xc00
mov dword [esp + 0x24], eax
fldcw word [esp + 0x24]
fistp qword [esp + 0x24]
mov edi, dword [esp + 0x24]
mov dword [esi + 0x670], edi
fldcw word [esp + 0x10]
mov byte [esp + 0x10], 0x20
mov cl, byte [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push 1
lea eax, [esp + 0x28]
push eax
push ebx
mov byte [esp + 0x30], cl
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
lea edx, [ecx + edi + 1]
cmp edx, dword [eax]
jbe 0x10002762
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov edi, dword [esi + 0x670]
lea eax, [edx + ecx + 1]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
push 0
push 1
lea ecx, [esp + 0x28]
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 + 0x24], eax
fild dword [esp + 0x24]
test eax, eax
jge 0x10002796
fadd dword [0x100432ec]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
fild dword [ecx]
test edx, edx
jge 0x100027a8
fadd dword [0x100432ec]
fdivp st(1)
mov ecx, dword [esp + 0x14]
mov eax, ecx
mov dword [esp + 0x24], eax
fstp dword [ebp - 4]
fild dword [esp + 0x24]
test eax, eax
jge 0x100027c5
fadd dword [0x100432ec]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
fild dword [edx]
test eax, eax
jge 0x100027d7
fadd dword [0x100432ec]
fdivp st(1)
mov eax, dword [esp + 0x30]
fstp dword [ebp]
mov edx, dword [esi + 0x670]
add edx, eax
add edx, edi
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
test edx, edx
jge 0x100027fc
fadd dword [0x100432ec]
mov edx, dword [esp + 0x18]
mov edx, dword [edx]
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
test edx, edx
jge 0x10002814
fadd dword [0x100432ec]
fdivp st(1)
mov edx, dword [esp + 0x34]
add edx, ecx
mov dword [esp + 0x24], edx
fstp dword [ebp + 4]
fild dword [esp + 0x24]
test edx, edx
jge 0x10002831
fadd dword [0x100432ec]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
fild dword [ecx]
test edx, edx
jge 0x10002843
fadd dword [0x100432ec]
fdivp st(1)
add ebp, 0x10
fstp dword [ebp - 8]
mov ecx, dword [esi + 0x670]
lea edx, [eax + ecx*2]
mov al, byte [esp + 0x10]
inc al
add edi, edx
cmp al, 0x7f
mov byte [esp + 0x10], al
jl 0x10002721
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
mov ecx, dword [eax]
push 0
push 0
lea edx, [esp + 0x78]
push edx
push 0
push eax
mov eax, dword [ecx + 0x4c]
call eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x74]
xor edi, edi
mov dword [esp + 0x14], edx
cmp dword [ecx], edi
jbe 0x100028ea
mov esi, dword [esp + 0x18]
xor ecx, ecx
cmp dword [esi], ecx
jbe 0x100028d9
lea ecx, [ecx]
mov eax, dword [esi]
mov ebp, dword [esp + 0x3c]
imul eax, edi
add eax, ecx
mov eax, dword [ebp + eax*4]
shr eax, 4
and al, 0xf
jbe 0x100028c8
movzx ax, al
shl ax, 0xc
mov ebp, 0xfff
or ax, bp
jmp 0x100028ca
xor eax, eax
mov word [edx], ax
inc ecx
add edx, 2
cmp ecx, dword [esi]
jb 0x100028a0
mov edx, dword [esp + 0x14]
add edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x1c]
inc edi
mov dword [esp + 0x14], edx
cmp edi, dword [ecx]
jb 0x10002893
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push 0
push eax
call edx
mov eax, dword [esp + 0x40]
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 + 0x2c]
push ecx
call esi
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x198
ret 4