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

Disassembly:
push 0xffffffffffffffff
push 0x100f1f6c
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 + 0x5c], esi
mov byte [esp + 0x70], dl
sbb ecx, ecx
and ecx, 0x12c
add ecx, 0x190
shr eax, 2
mov dword [esp + 0x34], ecx
and eax, 1
shr ebp, 1
lea ecx, [esp + 0x70]
and ebp, 1
mov dword [esp + 0x38], eax
call fcn.10001fd1
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.10001f23
mov ebx, eax
mov eax, dword [0x100f5420]
cmp ebx, eax
je 0x10048a79
push edi
lea ecx, [esp + 0x60]
push ecx
call fcn.10056dc0
mov edx, dword [0x100f5420]
push edx
push 0
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0xd8], 1
call fcn.10001e55
push 1
lea ecx, [esp + 0x60]
mov byte [esp + 0xd0], 0
call fcn.10001fd1
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x18]
add esi, 0x29c
push ecx
mov ecx, esi
call fcn.1004e170
lea edx, [esp + 0x6c]
mov dword [esp + 0x2c], eax
push edx
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.1004e100
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0x38]
push edx
push ecx
push eax
mov dword [esp + 0x44], 0
call fcn.1004e660
mov eax, dword [esp + 0x44]
add esp, 0xc
test eax, eax
jne 0x100489d7
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x100489b8
mov eax, 0x100f5424
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceA]
test eax, eax
je 0x100489d7
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x80]
push ecx
mov ecx, esi
call fcn.1004ad20
push ebx
push 0
lea edx, [esp + 0x84]
push edx
mov ecx, edi
call fcn.10001b29
push eax
lea eax, [esp + 0x60]
push eax
mov byte [esp + 0xd4], 2
call fcn.10057030
mov ecx, dword [0x100f5420]
push ecx
xor edi, edi
push edi
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0xd8], 3
call fcn.10001e55
mov eax, dword [esp + 0x60]
cmp eax, edi
je 0x10048a3c
lea ecx, [eax - 1]
mov al, byte [ecx]
test al, al
je 0x10048a33
cmp al, 0xff
je 0x10048a33
dec al
mov byte [ecx], al
jmp 0x10048a3c
push ecx
call fcn.1008d22c
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 0x10048a88
lea ecx, [eax - 1]
mov al, byte [ecx]
test al, al
je 0x10048a6e
cmp al, 0xff
je 0x10048a6e
dec al
mov byte [ecx], al
jmp 0x10048a88
push ecx
call fcn.1008d22c
add esp, 4
jmp 0x10048a88
push eax
push 0
push edi
lea ecx, [esp + 0x78]
call fcn.10001e55
xor edi, edi
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push edi
lea edx, [esp + 0x48]
push edx
push edi
push 0x4a
mov dword [esp + 0x54], edi
call esi
push edi
push edi
push edi
push 0x4b
call esi
mov eax, dword [esp + 0x70]
cmp eax, edi
jne 0x10048ab1
mov eax, 0x100f5424
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x38]
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 + 0x50], ebp
push edi
jne 0x10048af1
mov eax, dword [esp + 0x48]
push edi
push eax
push 0x4b
call esi
mov ecx, dword [esp + 0x70]
cmp ecx, edi
jmp 0x10048b62
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 + 0x24], esi
call ebx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x34], 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 0x10048b85
mov edx, dword [esp + 0x34]
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 + 0x44]
push 0
push 0
push eax
push 0x4b
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x10049146
mov al, byte [ecx - 1]
test al, al
je 0x1004913c
cmp al, 0xff
je 0x1004913c
dec al
mov byte [ecx - 1], al
jmp 0x10049146
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 + 0x2c], eax
mov dword [esp + 0x30], esi
call fcn.1009a535
push edi
mov dword [esp + 0x28], eax
call fcn.1009a535
push edi
mov dword [esp + 0x54], eax
call fcn.1009a535
xor edi, edi
add esp, 0xc
xor ebx, ebx
cmp ebp, edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x24], edi
jle 0x10048d1f
mov ecx, dword [esp + 0x20]
sub ecx, eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x48]
sub ecx, eax
mov esi, eax
mov dword [esp + 0x14], ecx
mov dl, byte [esp + 0x28]
add dl, byte [esp + 0x24]
lea eax, [esp + 0x7c]
push eax
push 1
lea ecx, [esp + 0x1b]
mov byte [esp + 0x1b], dl
mov edx, dword [esp + 0x24]
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
movsx eax, byte [esp + 0x13]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x7c]
lea ecx, [esp + 0x5c]
push ecx
push eax
push eax
push edx
mov dword [esp + 0x40], edi
mov dword [esi], 0
call dword [sym.imp.GDI32.dll_GetCharABCWidthsA]
test eax, eax
je 0x10048cb3
mov eax, dword [esp + 0x5c]
test eax, eax
jge 0x10048c88
neg eax
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
sub esp, 8
fstp qword [esp]
call fcn.1009b2ab
add esp, 8
call fcn.1009acc8
add edi, eax
mov dword [esi], eax
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x64]
test eax, eax
jge 0x10048cb3
neg eax
mov dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
sub esp, 8
fstp qword [esp]
call fcn.1009b2ab
fiadd dword [esp + 0x38]
add esp, 8
call fcn.1009acc8
mov edi, eax
test ebx, ebx
je 0x10048ce0
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x240]
call fcn.100464c0
lea ecx, [edi + ebx]
cmp ecx, eax
jle 0x10048ce0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0xd8]
xor ebx, ebx
add eax, edx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov eax, ebx
shl eax, 0x10
or eax, edx
mov edx, dword [esp + 0x14]
mov dword [ecx + esi], eax
mov eax, dword [esp + 0x54]
add ebx, edi
cmp ebx, eax
mov dword [edx + esi], edi
jle 0x10048d07
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x24]
inc eax
add esi, 4
cmp eax, ebp
mov dword [esp + 0x24], eax
jl 0x10048c0f
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0x18]
push edi
lea eax, [edx + ecx]
push 0
push eax
mov eax, dword [esp + 0x60]
push eax
call fcn.10055bb0
mov ebx, eax
test ebx, ebx
je 0x1004910b
push 0x144
call fcn.1009a535
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0xcc], 4
je 0x10048d8a
push 0
push ebx
push edi
mov ecx, eax
call fcn.10044a00
jmp 0x10048d8c
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x80]
lea ebx, [edi + 0x25c]
push edx
mov ecx, ebx
mov byte [esp + 0xd4], 0
mov dword [esp + 0x20], eax
call fcn.1004a4a0
mov ecx, dword [esp + 0x18]
call fcn.100454e0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1004910b
call fcn.10052b80
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x3c], eax
call dword [ecx + 0x44]
test eax, eax
jl 0x10049091
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x1c]
push 0
push edx
mov dword [esp + 0x54], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x1c]
push 0xffffff
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
xor ebx, ebx
test ebp, ebp
jle 0x10048eb4
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
mov ecx, esi
sub eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
sub eax, ecx
mov dword [esp + 0x3c], eax
mov ecx, dword [esi]
mov dl, byte [esp + 0x28]
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 + 0x48]
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [edx + esi]
mov edx, dword [esp + 0x2c]
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 0x10048e38
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x68]
mov edx, dword [esp + 0x50]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x38]
push eax
call fcn.1008d22c
push 0x28
call fcn.1009a535
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0xcc], 5
je 0x10048f40
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xbe]
push edx
mov edx, dword [esp + 0x30]
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 + 0x30]
push edx
push ecx
push edi
mov ecx, eax
call fcn.10052950
jmp 0x10048f42
xor eax, eax
mov ecx, dword [edi + 0x250]
mov edx, dword [0x1011f86c]
lea ebx, [edi + 0x24c]
mov dword [esp + 0x24], eax
mov edi, dword [ecx + 4]
cmp edi, edx
mov esi, ecx
mov byte [esp + 0xcc], 0
mov cl, 1
je 0x10048f82
cmp eax, dword [edi + 0xc]
setb cl
test cl, cl
mov esi, edi
je 0x10048f7b
mov edi, dword [edi]
jmp 0x10048f7e
mov edi, dword [edi + 8]
cmp edi, edx
jne 0x10048f6b
mov al, byte [ebx + 8]
test al, al
je 0x10048fac
lea edx, [esp + 0x13]
push edx
lea eax, [esp + 0x28]
push eax
push esi
push edi
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
mov byte [esp + 0x27], 1
call fcn.1004b5a0
push eax
jmp 0x1004902d
test cl, cl
mov dword [esp + 0x20], esi
je 0x10048ff1
lea edx, [esp + 0x14]
push edx
mov ecx, ebx
call fcn.1002f0d0
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax]
jne 0x10048fe8
lea edx, [esp + 0x13]
push edx
lea eax, [esp + 0x28]
push eax
push esi
push edi
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
mov byte [esp + 0x27], 1
call fcn.1004b5a0
push eax
jmp 0x1004902d
lea ecx, [esp + 0x20]
call fcn.1004dca0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
cmp dword [eax + 0xc], edx
jae 0x1004901e
lea ecx, [esp + 0x13]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
push edi
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
mov byte [esp + 0x27], 1
call fcn.1004b5a0
push eax
jmp 0x1004902d
lea ecx, [esp + 0x13]
push ecx
lea edx, [esp + 0x24]
mov byte [esp + 0x17], 0
push edx
lea ecx, [esp + 0x44]
call fcn.1004b0b0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x84]
call fcn.1004b0b0
mov edx, dword [esp + 0x44]
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 + 0x24]
je 0x1004908a
mov al, byte [ecx - 1]
test al, al
je 0x10049080
cmp al, 0xff
je 0x10049080
dec al
mov byte [ecx - 1], al
mov eax, esi
jmp 0x10049148
dec ecx
push ecx
call fcn.1008d22c
add esp, 4
mov eax, esi
jmp 0x10049148
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, ebx
mov dword [esp + 0x30], eax
call fcn.1004dd40
mov edi, eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, ebx
call fcn.1004dd00
mov esi, dword [eax]
mov edx, dword [esp + 0x14]
mov edi, dword [edi]
push edx
lea eax, [esp + 0x30]
push eax
push edi
push esi
mov dword [esp + 0x3c], 0
call fcn.1004e820
add esp, 0x10
push edi
push esi
lea ecx, [esp + 0x54]
push ecx
mov ecx, ebx
call fcn.1004a6e0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1004910b
mov ecx, dword [esp + 0x28]
test ecx, ecx
mov esi, ecx
je 0x1004910b
call fcn.10044d50
push esi
call fcn.1008d22c
add esp, 4
mov edx, dword [esp + 0x50]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x38]
push eax
call fcn.1008d22c
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.1008d22c
mov edx, dword [esp + 0x28]
push edx
call fcn.1008d22c
add esp, 0xc
jmp 0x10048b4b
dec ecx
push ecx
call fcn.1008d22c
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