Function at 0x100020a0
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
lea ebx, [esi + 0x64]
cmp eax, 0x3c
jbe 0x100020da
lea edi, [esi + 0x68]
mov dword [esp + 0xc], edi
mov dword [edi], 0x800
mov dword [ebx], 0x800
jmp 0x10002118
cmp eax, 0x1e
jbe 0x100020f0
lea eax, [esi + 0x68]
mov dword [eax], 0x400
mov dword [ebx], 0x400
jmp 0x10002112
cmp eax, 0xf
lea eax, [esi + 0x68]
jbe 0x10002106
mov dword [eax], 0x200
mov dword [ebx], 0x200
jmp 0x10002112
mov dword [eax], 0x100
mov dword [ebx], 0x100
mov dword [esp + 0xc], eax
mov edi, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x74]
push edx
push ecx
call eax
mov ecx, dword [ebx]
mov eax, dword [esp + 0xcc]
cmp ecx, eax
jbe 0x10002161
mov edx, eax
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
test edx, edx
jge 0x10002146
fadd dword [0x1000743c]
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
test ecx, ecx
jge 0x10002158
fadd dword [0x1000743c]
fdivp st(1)
mov dword [edi], eax
mov dword [ebx], 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 + 0x4c], ecx
mov ecx, dword [edi]
push 1
push ecx
mov ecx, dword [ebx]
push ecx
push eax
call edx
test eax, eax
jl 0x10002524
mov ecx, dword [edi]
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 [ebx]
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 + 0x48]
push ecx
push 0
lea edx, [esp + 0x54]
mov edi, eax
push edx
push edi
mov dword [esp + 0x40], edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push 1
push edi
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_SetMapMode]
push 0x48
push 0x5a
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fmul dword [esi + 0x6c]
call fcn.10005d70
push eax
mov eax, dword [esi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esi + 0x54]
push esi
push 2
push 4
push 0
push 0
push 1
push 0
push 0
shr ecx, 1
and ecx, 1
push ecx
push 0x190
push 0
push 0
neg eax
push 0
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
mov ebp, eax
mov dword [esp + 0x2c], ebp
test ebp, ebp
jne 0x10002289
pop ebp
pop edi
pop esi
mov eax, 0x80004005
pop ebx
add esp, 0x198
ret 4
mov ecx, dword [esp + 0x38]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xffffff
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push edi
call dword [sym.imp.GDI32.dll_SetTextAlign]
lea eax, [esp + 0x30]
push eax
push 1
push 0x10007438
mov edx, 0x78
push edi
mov dword [esp + 0x2c], 0
mov word [esp + 0x28], dx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
fild dword [esp + 0x34]
sub esp, 8
fmul qword [0x10007430]
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 + 0x20], eax
fldcw word [esp + 0x20]
fistp qword [esp + 0x20]
mov edi, dword [esp + 0x20]
mov dword [esi + 0x670], edi
fldcw word [esp + 0x14]
mov byte [esp + 0x14], 0x20
lea esp, [esp]
mov cl, byte [esp + 0x14]
lea edx, [esp + 0x30]
push edx
push 1
lea eax, [esp + 0x20]
mov byte [esp + 0x20], cl
mov ecx, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esi + 0x670]
mov edx, dword [esp + 0x30]
lea ecx, [eax + edx]
add ecx, edi
cmp ecx, dword [ebx]
jbe 0x10002384
mov edx, dword [esp + 0x34]
mov edi, eax
mov eax, dword [esp + 0x1c]
lea ecx, [eax + edx + 1]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
push 0
push 1
lea edx, [esp + 0x20]
push edx
push 0
push 2
push eax
push edi
push ecx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov edx, edi
sub edx, dword [esi + 0x670]
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
test edx, edx
jge 0x100023bc
fadd dword [0x1000743c]
mov eax, dword [ebx]
fild dword [ebx]
test eax, eax
jge 0x100023ca
fadd dword [0x1000743c]
fdivp st(1)
mov ecx, dword [esp + 0x1c]
mov edx, ecx
mov dword [esp + 0x20], edx
fstp dword [ebp - 4]
fild dword [esp + 0x20]
test edx, edx
jge 0x100023e7
fadd dword [0x1000743c]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
fild dword [eax]
test edx, edx
jge 0x100023f9
fadd dword [0x1000743c]
fdivp st(1)
mov eax, dword [esp + 0x30]
lea edx, [eax + edi]
fstp dword [ebp]
add edx, dword [esi + 0x670]
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
test edx, edx
jge 0x1000241d
fadd dword [0x1000743c]
mov edx, dword [ebx]
fild dword [ebx]
test edx, edx
jge 0x1000242b
fadd dword [0x1000743c]
fdivp st(1)
mov edx, dword [esp + 0x34]
add edx, ecx
mov dword [esp + 0x20], edx
fstp dword [ebp + 4]
fild dword [esp + 0x20]
test edx, edx
jge 0x10002448
fadd dword [0x1000743c]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
fild dword [ecx]
test edx, edx
jge 0x1000245a
fadd dword [0x1000743c]
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 0x10002340
mov eax, dword [esp + 0x3c]
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 + 0x10]
mov edi, dword [esp + 0x74]
xor esi, esi
cmp dword [ecx], esi
jbe 0x100024f2
xor ecx, ecx
mov edx, edi
cmp dword [ebx], ecx
jbe 0x100024e5
mov edi, edi
mov eax, dword [ebx]
mov ebp, dword [esp + 0x40]
imul eax, esi
add eax, ecx
mov eax, dword [ebp + eax*4]
shr eax, 4
and al, 0xf
jbe 0x100024d8
movzx ax, al
shl ax, 0xc
mov ebp, 0xfff
or ax, bp
jmp 0x100024da
xor eax, eax
mov word [edx], ax
inc ecx
add edx, 2
cmp ecx, dword [ebx]
jb 0x100024b0
mov ecx, dword [esp + 0x10]
add edi, dword [esp + 0x70]
inc esi
cmp esi, dword [ecx]
jb 0x100024a6
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push 0
push eax
call edx
mov eax, dword [esp + 0x38]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call esi
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esp + 0x2c]
push edx
call esi
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x198
ret 4