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

Disassembly:
push 0xffffffffffffffff
push 0x100f2b2c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
mov eax, dword [esp + 0xc8]
push ebx
push ebp
push esi
mov esi, ecx
mov dl, byte [esp + 0xf]
mov ecx, eax
mov ebp, eax
and cl, 1
push edi
neg cl
sbb ecx, ecx
push 0
and ecx, 0x12c
mov dword [esp + 0x38], esi
add ecx, 0x190
mov byte [esp + 0x6c], dl
shr eax, 2
mov dword [esp + 0x24], ecx
and eax, 1
shr ebp, 1
lea ecx, [esp + 0x6c]
and ebp, 1
mov dword [esp + 0x2c], eax
call fcn.10002040
mov edi, dword [esp + 0xd0]
push 1
lea eax, [esp + 0x17]
push 0
push eax
mov ecx, edi
mov dword [esp + 0xd4], 0
mov byte [esp + 0x1f], 0x2e
call fcn.10001f92
mov ebx, eax
mov eax, dword [0x100f7360]
cmp ebx, eax
je 0x1004b0f2
lea ecx, [esp + 0x58]
push edi
push ecx
call fcn.10057e80
mov edx, dword [0x100f7360]
lea ecx, [esp + 0x68]
push edx
push 0
push eax
mov byte [esp + 0xd4], 1
call fcn.10001ec4
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0xcc], 0
call fcn.10002040
lea eax, [esp + 0x68]
lea ecx, [esp + 0x1c]
add esi, 0x2a4
push eax
push ecx
mov ecx, esi
call fcn.100513b0
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x68]
lea eax, [esp + 0x44]
push edx
push eax
mov ecx, esi
call fcn.10051390
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax]
lea edx, [esp + 0x30]
mov ecx, dword [ecx]
push edx
push ecx
push eax
mov dword [esp + 0x3c], 0
call fcn.10051bf0
mov eax, dword [esp + 0x3c]
add esp, 0xc
test eax, eax
jne 0x1004b054
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x1004b038
mov eax, 0x100f7364
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceA]
test eax, eax
je 0x1004b054
lea eax, [esp + 0x68]
lea ecx, [esp + 0x78]
push eax
push ecx
mov ecx, esi
call fcn.1004d3e0
push ebx
lea edx, [esp + 0x7c]
push 0
push edx
mov ecx, edi
call fcn.10001be6
push eax
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0xd0], 2
call fcn.100580f0
mov ecx, dword [0x100f7360]
xor edi, edi
push ecx
push edi
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0xd4], 3
call fcn.10001ec4
mov eax, dword [esp + 0x5c]
cmp eax, edi
je 0x1004b0b7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x1004b0ae
cmp al, 0xff
je 0x1004b0ae
dec al
mov byte [ecx], al
jmp 0x1004b0b7
push ecx
call fcn.100d0293
add esp, 4
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x5c], edi
cmp eax, edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov byte [esp + 0xc8], 0
je 0x1004b101
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x1004b0e7
cmp al, 0xff
je 0x1004b0e7
dec al
mov byte [ecx], al
jmp 0x1004b101
push ecx
call fcn.100d0293
add esp, 4
jmp 0x1004b101
push eax
push 0
push edi
lea ecx, [esp + 0x74]
call fcn.10001ec4
xor edi, edi
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea edx, [esp + 0x3c]
push edi
push edx
push edi
push 0x4a
mov dword [esp + 0x4c], edi
call esi
push edi
push edi
push edi
push 0x4b
call esi
mov eax, dword [esp + 0x6c]
cmp eax, edi
jne 0x1004b12a
mov eax, 0x100f7364
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x2c]
push edi
push edi
push edi
mov edx, dword [esp + 0xe4]
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
push edi
cmp ebp, edi
mov dword [esp + 0x34], ebp
jne 0x1004b16a
mov eax, dword [esp + 0x40]
push edi
push eax
push 0x4b
call esi
mov ecx, dword [esp + 0x6c]
cmp ecx, edi
jmp 0x1004b1db
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 + 0x54], esi
call ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x88], edi
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x8c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x88]
push ecx
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
test eax, eax
jne 0x1004b1fe
mov edx, dword [esp + 0x28]
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 + 0x3c]
push 0
push 0
push eax
push 0x4b
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x1004b6e5
mov al, byte [ecx - 1]
test al, al
je 0x1004b6db
cmp al, 0xff
je 0x1004b6db
dec al
mov byte [ecx - 1], al
jmp 0x1004b6e5
mov esi, dword [esp + 0xb5]
mov eax, dword [esp + 0xb4]
and esi, 0xff
mov ecx, dword [esp + 0x88]
and eax, 0xff
mov ebp, esi
sub ebp, eax
mov dword [esp + 0xd4], ecx
inc ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], esi
lea edi, [ebp*4]
push edi
call fcn.100ddb25
push edi
mov dword [esp + 0x40], eax
call fcn.100ddb25
push edi
mov dword [esp + 0x54], eax
call fcn.100ddb25
mov edi, eax
xor eax, eax
add esp, 0xc
xor ebx, ebx
cmp ebp, eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x18], eax
jle 0x1004b3a0
mov eax, dword [esp + 0x38]
mov esi, edi
sub eax, edi
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x48]
sub eax, edi
mov dword [esp + 0x1c], eax
mov dl, byte [esp + 0x24]
mov al, byte [esp + 0x18]
add dl, al
lea eax, [esp + 0x78]
mov byte [esp + 0x13], dl
mov edx, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x17]
push 1
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
movsx eax, byte [esp + 0x13]
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x78]
lea ecx, [esp + 0x58]
mov dword [esp + 0x20], edi
push ecx
push eax
push eax
push edx
mov dword [esi], 0
call dword [sym.imp.GDI32.dll_GetCharABCWidthsA]
test eax, eax
je 0x1004b330
mov eax, dword [esp + 0x58]
test eax, eax
jge 0x1004b305
neg eax
mov dword [esp + 0x20], eax
sub esp, 8
fild dword [esp + 0x28]
fstp qword [esp]
call fcn.100de3eb
add esp, 8
call fcn.100dde0c
add edi, eax
mov dword [esi], eax
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x60]
test eax, eax
jge 0x1004b330
neg eax
mov dword [esp + 0x54], eax
sub esp, 8
fild dword [esp + 0x5c]
fstp qword [esp]
call fcn.100de3eb
fiadd dword [esp + 0x28]
add esp, 8
call fcn.100dde0c
mov edi, eax
test ebx, ebx
je 0x1004b35d
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x240]
call fcn.10049100
lea ecx, [edi + ebx]
cmp ecx, eax
jle 0x1004b35d
mov edx, dword [esp + 0xd4]
mov eax, dword [esp + 0x14]
xor ebx, ebx
add eax, edx
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
mov eax, ebx
add ebx, edi
shl eax, 0x10
or eax, edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + esi], eax
mov eax, dword [esp + 0x50]
cmp ebx, eax
mov dword [edx + esi], edi
jle 0x1004b384
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0x18]
add esi, 4
inc eax
cmp eax, ebp
mov dword [esp + 0x18], eax
jl 0x1004b28a
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x4c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0x14]
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x50]
push ecx
push 0
push eax
push edx
call fcn.100569b0
mov ebx, eax
test ebx, ebx
je 0x1004b6ae
push 0xcc
call fcn.100ddb25
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0xc8], 4
je 0x1004b40f
mov ecx, dword [esp + 0x34]
push 0
push ebx
push ecx
mov ecx, eax
call fcn.10047530
jmp 0x1004b411
xor eax, eax
mov edx, dword [esp + 0x34]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x78]
lea ebx, [edx + 0x264]
push eax
push ecx
mov ecx, ebx
mov byte [esp + 0xd0], 0
call fcn.1004c860
mov ecx, dword [esp + 0x18]
call fcn.10048100
mov edi, dword [esp + 0x18]
test edi, edi
je 0x1004b6aa
mov ecx, edi
call fcn.100535f0
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x28], eax
call dword [edx + 0x44]
test eax, eax
jl 0x1004b63b
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x5c], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x14]
push 0xffffff
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
xor ebx, ebx
test ebp, ebp
jle 0x1004b539
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
mov ecx, esi
sub eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
sub eax, ecx
mov dword [esp + 0x44], 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 + 0x1c]
sar eax, 0x10
mov byte [esp + 0x13], cl
mov ecx, dword [edx + esi]
mov edx, dword [esp + 0xd4]
and eax, 0xffff
add ecx, eax
push 0
mov dword [esp + 0x64], ecx
lea ecx, [edi + edx]
lea edx, [esp + 0x17]
push 1
mov dword [esp + 0x6c], ecx
push edx
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x64]
push ecx
push 4
mov ecx, dword [edx + esi]
mov edx, dword [esp + 0x28]
add ecx, eax
push edi
push ecx
push edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
inc ebx
add esi, 4
cmp ebx, ebp
jl 0x1004b4c0
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x68]
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x40]
push eax
call fcn.100d0293
add esp, 4
mov ecx, edi
call fcn.10047960
push 0x28
call fcn.100ddb25
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0xc8], 5
je 0x1004b5cf
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0xba]
and ecx, 0xff
push edx
mov edx, dword [esp + 0x2c]
inc esi
push ecx
mov ecx, dword [esp + 0xe0]
push esi
push edx
mov edx, dword [esp + 0xb4]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push edi
push ecx
mov ecx, eax
call fcn.100533a0
jmp 0x1004b5d1
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x78]
push edx
push eax
add ecx, 0x254
mov byte [esp + 0xd0], 0
call fcn.1004c5b0
mov edx, dword [esp + 0x3c]
push 0
push 0
push edx
push 0x4b
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x28]
test ecx, ecx
je 0x1004b634
mov al, byte [ecx - 1]
test al, al
je 0x1004b62a
cmp al, 0xff
je 0x1004b62a
dec al
mov byte [ecx - 1], al
mov eax, esi
jmp 0x1004b6e7
dec ecx
push ecx
call fcn.100d0293
add esp, 4
mov eax, esi
jmp 0x1004b6e7
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
mov dword [esp + 0x28], edi
call fcn.100516a0
lea ecx, [esp + 0x24]
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, ebx
mov esi, eax
call fcn.10050fd0
mov edi, dword [eax]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push eax
push ecx
push esi
push edi
mov dword [esp + 0x3c], 0
call fcn.10051d70
add esp, 0x10
lea edx, [esp + 0x44]
mov ecx, ebx
push esi
push edi
push edx
call fcn.1004c990
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1004b6aa
mov ecx, dword [esp + 0x24]
test ecx, ecx
mov esi, ecx
je 0x1004b6aa
call fcn.100478c0
push esi
call fcn.100d0293
add esp, 4
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call fcn.100d0293
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.100d0293
mov edx, dword [esp + 0x40]
push edx
call fcn.100d0293
add esp, 0xc
jmp 0x1004b1c4
dec ecx
push ecx
call fcn.100d0293
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xbc
ret 0xc