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

Disassembly:
push 0xffffffffffffffff
push 0x1010146c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
mov eax, dword [esp + 0xcc]
mov dl, byte [esp + 3]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, eax
and cl, 1
neg cl
mov ebp, eax
push edi
push 0
mov dword [esp + 0x34], esi
mov byte [esp + 0x70], dl
sbb ecx, ecx
and ecx, 0x12c
add ecx, 0x190
shr eax, 2
mov dword [esp + 0x3c], ecx
and eax, 1
shr ebp, 1
lea ecx, [esp + 0x70]
and ebp, 1
mov dword [esp + 0x30], eax
call fcn.10002047
mov edi, dword [esp + 0xd4]
push 1
push 0
lea eax, [esp + 0x1b]
push eax
mov ecx, edi
mov dword [esp + 0xd8], 0
mov byte [esp + 0x1f], 0x2e
call fcn.10001f99
mov ebx, eax
mov eax, dword [0x10105430]
cmp ebx, eax
je 0x10048c0e
push edi
lea ecx, [esp + 0x60]
push ecx
call fcn.10057830
mov edx, dword [0x10105430]
push edx
push 0
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0xd8], 1
call fcn.10001ecb
push 1
lea ecx, [esp + 0x60]
mov byte [esp + 0xd0], 0
call fcn.10002047
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x18]
add esi, 0x2a4
push ecx
mov ecx, esi
call fcn.1004e340
lea edx, [esp + 0x6c]
mov dword [esp + 0x28], eax
push edx
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
call fcn.1004e2d0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov eax, dword [eax]
push edx
lea edx, [esp + 0x38]
push edx
push ecx
push eax
mov dword [esp + 0x44], 0
call fcn.1004ea30
mov eax, dword [esp + 0x44]
add esp, 0x10
test eax, eax
jne 0x10048b6c
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x10048b4d
mov eax, 0x10105434
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceA]
test eax, eax
je 0x10048b6c
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x80]
push ecx
mov ecx, esi
call fcn.1004af10
push ebx
push 0
lea edx, [esp + 0x84]
push edx
mov ecx, edi
call fcn.10001bf3
push eax
lea eax, [esp + 0x60]
push eax
mov byte [esp + 0xd4], 2
call fcn.10057aa0
mov ecx, dword [0x10105430]
push ecx
xor edi, edi
push edi
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0xd8], 3
call fcn.10001ecb
mov eax, dword [esp + 0x60]
cmp eax, edi
je 0x10048bd1
lea ecx, [eax - 1]
mov al, byte [ecx]
test al, al
je 0x10048bc8
cmp al, 0xff
je 0x10048bc8
dec al
mov byte [ecx], al
jmp 0x10048bd1
push ecx
call fcn.10090902
add esp, 4
mov eax, dword [esp + 0x80]
cmp eax, edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov byte [esp + 0xcc], 0
je 0x10048c1d
lea ecx, [eax - 1]
mov al, byte [ecx]
test al, al
je 0x10048c03
cmp al, 0xff
je 0x10048c03
dec al
mov byte [ecx], al
jmp 0x10048c1d
push ecx
call fcn.10090902
add esp, 4
jmp 0x10048c1d
push eax
push 0
push edi
lea ecx, [esp + 0x78]
call fcn.10001ecb
xor edi, edi
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push edi
lea edx, [esp + 0x44]
push edx
push edi
push 0x4a
mov dword [esp + 0x50], edi
call esi
push edi
push edi
push edi
push 0x4b
call esi
mov eax, dword [esp + 0x70]
cmp eax, edi
jne 0x10048c46
mov eax, 0x10105434
mov ecx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x30]
push edi
mov edx, dword [esp + 0xe0]
push edi
push edi
push edi
push edi
push edi
push eax
push ebp
push ecx
push edi
push edi
push edi
push edx
call dword [sym.imp.GDI32.dll_CreateFontA]
mov ebp, eax
cmp ebp, edi
mov dword [esp + 0x34], ebp
push edi
jne 0x10048c86
mov eax, dword [esp + 0x44]
push edi
push eax
push 0x4b
call esi
mov ecx, dword [esp + 0x70]
cmp ecx, edi
jmp 0x10048cf7
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
push ebp
push esi
mov dword [esp + 0x28], esi
call ebx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x2c], eax
xor eax, eax
mov ecx, 0xd
lea edi, [esp + 0x90]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x8c]
push ecx
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
test eax, eax
jne 0x10048d1a
mov edx, dword [esp + 0x2c]
push edx
push esi
call ebx
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x40]
push 0
push 0
push eax
push 0x4b
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x100492fe
mov al, byte [ecx - 1]
test al, al
je 0x100492f4
cmp al, 0xff
je 0x100492f4
dec al
mov byte [ecx - 1], al
jmp 0x100492fe
mov esi, dword [esp + 0xb9]
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0x8c]
and esi, 0xff
and eax, 0xff
mov ebp, esi
sub ebp, eax
inc ebp
lea edi, [ebp*4]
push edi
mov dword [esp + 0xdc], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
call fcn.1009e195
push edi
mov dword [esp + 0x4c], eax
call fcn.1009e195
push edi
mov dword [esp + 0x60], eax
call fcn.1009e195
mov edi, eax
xor eax, eax
add esp, 0xc
xor ebx, ebx
cmp ebp, eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x18], eax
jle 0x10048eba
mov eax, dword [esp + 0x44]
sub eax, edi
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
sub eax, edi
mov esi, edi
mov dword [esp + 0x14], eax
mov dl, byte [esp + 0x24]
add dl, byte [esp + 0x18]
lea eax, [esp + 0x7c]
push eax
push 1
lea ecx, [esp + 0x1b]
mov byte [esp + 0x1b], dl
mov edx, dword [esp + 0x28]
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
movsx eax, byte [esp + 0x13]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x7c]
lea ecx, [esp + 0x5c]
push ecx
push eax
push eax
push edx
mov dword [esp + 0x48], edi
mov dword [esi], 0
call dword [sym.imp.GDI32.dll_GetCharABCWidthsA]
test eax, eax
je 0x10048e4a
mov eax, dword [esp + 0x5c]
test eax, eax
jge 0x10048e1f
neg eax
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
sub esp, 8
fstp qword [esp]
call fcn.1009ebc1
add esp, 8
call fcn.1009e5c8
add edi, eax
mov dword [esi], eax
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0x64]
test eax, eax
jge 0x10048e4a
neg eax
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
sub esp, 8
fstp qword [esp]
call fcn.1009ebc1
fiadd dword [esp + 0x40]
add esp, 8
call fcn.1009e5c8
mov edi, eax
test ebx, ebx
je 0x10048e77
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x240]
call fcn.100465a0
lea ecx, [edi + ebx]
cmp ecx, eax
jle 0x10048e77
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0xd8]
xor ebx, ebx
add eax, edx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
mov eax, ebx
shl eax, 0x10
or eax, edx
mov edx, dword [esp + 0x14]
mov dword [ecx + esi], eax
mov eax, dword [esp + 0x58]
add ebx, edi
cmp ebx, eax
mov dword [edx + esi], edi
jle 0x10048e9e
mov dword [esp + 0x58], ebx
mov eax, dword [esp + 0x18]
inc eax
add esi, 4
cmp eax, ebp
mov dword [esp + 0x18], eax
jl 0x10048da6
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0x1c]
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x58]
push ecx
push 0
push eax
push edx
call fcn.100562c0
mov ebx, eax
test ebx, ebx
je 0x100492be
push 0xcc
call fcn.1009e195
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0xcc], 4
je 0x10048f29
mov ecx, dword [esp + 0x30]
push 0
push ebx
push ecx
mov ecx, eax
call fcn.10044a50
jmp 0x10048f2b
xor eax, eax
mov edx, dword [esp + 0x30]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x80]
lea ebx, [edx + 0x264]
push ecx
mov ecx, ebx
mov byte [esp + 0xd4], 0
call fcn.1004a690
mov ecx, dword [esp + 0x18]
call fcn.100455c0
mov edi, dword [esp + 0x18]
test edi, edi
je 0x100492ba
mov ecx, edi
call fcn.10052f60
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
push eax
mov dword [esp + 0x34], eax
call dword [edx + 0x44]
test eax, eax
jl 0x10049244
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x20]
push 0
push ecx
mov dword [esp + 0x58], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x20]
push 0xffffff
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
xor ebx, ebx
test ebp, ebp
jle 0x10049059
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x54]
mov ecx, esi
sub eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
sub eax, ecx
mov dword [esp + 0x48], eax
mov ecx, dword [esi]
mov dl, byte [esp + 0x24]
mov eax, ecx
and ecx, 0xffff
mov edi, ecx
mov cl, bl
add cl, dl
mov edx, dword [esp + 0x14]
mov byte [esp + 0x13], cl
mov ecx, dword [edx + esi]
mov edx, dword [esp + 0xd8]
sar eax, 0x10
and eax, 0xffff
add ecx, eax
push 0
mov dword [esp + 0x68], ecx
lea ecx, [edi + edx]
push 1
mov dword [esp + 0x70], ecx
lea edx, [esp + 0x1b]
push edx
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [edx + esi]
mov edx, dword [esp + 0x30]
push 4
push edi
add ecx, eax
push ecx
push edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], edi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
inc ebx
add esi, 4
cmp ebx, ebp
jl 0x10048fdd
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x68]
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x3c]
push eax
call fcn.10090902
add esp, 4
mov ecx, edi
call fcn.10044e70
push 0x28
call fcn.1009e195
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0xcc], 5
je 0x100490ef
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0xbe]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 0xff
push ecx
mov ecx, dword [esp + 0xe4]
inc esi
push esi
push edx
mov edx, dword [esp + 0xb8]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push edi
push ecx
mov ecx, eax
call fcn.10052d30
jmp 0x100490f1
xor eax, eax
mov edx, dword [esp + 0x30]
mov ecx, dword [edx + 0x258]
lea ebx, [edx + 0x254]
mov edx, dword [0x1013241c]
mov dword [esp + 0x1c], eax
mov edi, dword [ecx + 4]
cmp edi, edx
mov esi, ecx
mov byte [esp + 0xcc], 0
mov cl, 1
je 0x10049135
cmp eax, dword [edi + 0xc]
setb cl
test cl, cl
mov esi, edi
je 0x1004912e
mov edi, dword [edi]
jmp 0x10049131
mov edi, dword [edi + 8]
cmp edi, edx
jne 0x1004911e
mov al, byte [ebx + 8]
test al, al
je 0x1004915f
lea eax, [esp + 0x13]
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
push edi
lea edx, [esp + 0x24]
push edx
mov ecx, ebx
mov byte [esp + 0x27], 1
call fcn.1004b770
push eax
jmp 0x100491e0
test cl, cl
mov dword [esp + 0x18], esi
je 0x100491a4
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.10021b30
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax]
jne 0x1004919b
lea edx, [esp + 0x13]
push edx
lea eax, [esp + 0x20]
push eax
push esi
push edi
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
mov byte [esp + 0x27], 1
call fcn.1004b770
push eax
jmp 0x100491e0
lea ecx, [esp + 0x18]
call fcn.1004de70
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
cmp dword [eax + 0xc], edx
jae 0x100491d1
lea ecx, [esp + 0x13]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
push edi
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
mov byte [esp + 0x27], 1
call fcn.1004b770
push eax
jmp 0x100491e0
lea ecx, [esp + 0x13]
push ecx
lea edx, [esp + 0x1c]
mov byte [esp + 0x17], 0
push edx
lea ecx, [esp + 0x50]
call fcn.100344f0
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x84]
call fcn.100344f0
mov edx, dword [esp + 0x40]
push 0
push 0
push edx
push 0x4b
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ecx, dword [esp + 0x70]
test ecx, ecx
mov esi, dword [esp + 0x1c]
je 0x1004923d
mov al, byte [ecx - 1]
test al, al
je 0x10049233
cmp al, 0xff
je 0x10049233
dec al
mov byte [ecx - 1], al
mov eax, esi
jmp 0x10049300
dec ecx
push ecx
call fcn.10090902
add esp, 4
mov eax, esi
jmp 0x10049300
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
mov dword [esp + 0x2c], edi
call fcn.1004df10
lea edx, [esp + 0x24]
mov edi, eax
push edx
lea eax, [esp + 0x4c]
push eax
mov ecx, ebx
call fcn.1004ded0
mov ecx, dword [esp + 0x14]
mov edi, dword [edi]
mov esi, dword [eax]
push ecx
lea edx, [esp + 0x2c]
push edx
push edi
push esi
mov dword [esp + 0x38], 0
call fcn.1004e970
add esp, 0x10
push edi
push esi
lea eax, [esp + 0x58]
push eax
mov ecx, ebx
call fcn.1004a8d0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x100492ba
mov ecx, dword [esp + 0x24]
test ecx, ecx
mov esi, ecx
je 0x100492ba
call fcn.10044dd0
push esi
call fcn.10090902
add esp, 4
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call fcn.10090902
mov edx, dword [esp + 0x58]
push edx
call fcn.10090902
mov eax, dword [esp + 0x4c]
push eax
call fcn.10090902
mov ecx, dword [esp + 0x4c]
add esp, 0xc
push 0
push 0
push ecx
jmp 0x10048ce9
dec ecx
push ecx
call fcn.10090902
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc0
ret 0xc