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

Disassembly:
push 0xffffffffffffffff
push 0x100f2b8c
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.10002043
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.10001f95
mov ebx, eax
mov eax, dword [0x100f7360]
cmp ebx, eax
je 0x1004b452
lea ecx, [esp + 0x58]
push edi
push ecx
call fcn.10058110
mov edx, dword [0x100f7360]
lea ecx, [esp + 0x68]
push edx
push 0
push eax
mov byte [esp + 0xd4], 1
call fcn.10001ec7
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0xcc], 0
call fcn.10002043
lea eax, [esp + 0x68]
lea ecx, [esp + 0x1c]
add esi, 0x2a4
push eax
push ecx
mov ecx, esi
call fcn.100515c0
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x68]
lea eax, [esp + 0x44]
push edx
push eax
mov ecx, esi
call fcn.100515a0
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.10051e00
mov eax, dword [esp + 0x3c]
add esp, 0xc
test eax, eax
jne 0x1004b3b4
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x1004b398
mov eax, 0x100f7364
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceA]
test eax, eax
je 0x1004b3b4
lea eax, [esp + 0x68]
lea ecx, [esp + 0x78]
push eax
push ecx
mov ecx, esi
call fcn.1004d5f0
push ebx
lea edx, [esp + 0x7c]
push 0
push edx
mov ecx, edi
call fcn.10001bf1
push eax
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0xd0], 2
call fcn.10058380
mov ecx, dword [0x100f7360]
xor edi, edi
push ecx
push edi
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0xd4], 3
call fcn.10001ec7
mov eax, dword [esp + 0x5c]
cmp eax, edi
je 0x1004b417
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x1004b40e
cmp al, 0xff
je 0x1004b40e
dec al
mov byte [ecx], al
jmp 0x1004b417
push ecx
call fcn.100d02fa
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 0x1004b461
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x1004b447
cmp al, 0xff
je 0x1004b447
dec al
mov byte [ecx], al
jmp 0x1004b461
push ecx
call fcn.100d02fa
add esp, 4
jmp 0x1004b461
push eax
push 0
push edi
lea ecx, [esp + 0x74]
call fcn.10001ec7
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 0x1004b48a
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 0x1004b4ca
mov eax, dword [esp + 0x40]
push edi
push eax
push 0x4b
call esi
mov ecx, dword [esp + 0x6c]
cmp ecx, edi
jmp 0x1004b53b
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 0x1004b55e
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 0x1004ba45
mov al, byte [ecx - 1]
test al, al
je 0x1004ba3b
cmp al, 0xff
je 0x1004ba3b
dec al
mov byte [ecx - 1], al
jmp 0x1004ba45
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.100ddb85
push edi
mov dword [esp + 0x40], eax
call fcn.100ddb85
push edi
mov dword [esp + 0x54], eax
call fcn.100ddb85
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 0x1004b700
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 0x1004b690
mov eax, dword [esp + 0x58]
test eax, eax
jge 0x1004b665
neg eax
mov dword [esp + 0x20], eax
sub esp, 8
fild dword [esp + 0x28]
fstp qword [esp]
call fcn.100de44b
add esp, 8
call fcn.100dde6c
add edi, eax
mov dword [esi], eax
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x60]
test eax, eax
jge 0x1004b690
neg eax
mov dword [esp + 0x54], eax
sub esp, 8
fild dword [esp + 0x5c]
fstp qword [esp]
call fcn.100de44b
fiadd dword [esp + 0x28]
add esp, 8
call fcn.100dde6c
mov edi, eax
test ebx, ebx
je 0x1004b6bd
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x240]
call fcn.10049310
lea ecx, [edi + ebx]
cmp ecx, eax
jle 0x1004b6bd
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 0x1004b6e4
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0x18]
add esi, 4
inc eax
cmp eax, ebp
mov dword [esp + 0x18], eax
jl 0x1004b5ea
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.10056c40
mov ebx, eax
test ebx, ebx
je 0x1004ba0e
push 0xcc
call fcn.100ddb85
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0xc8], 4
je 0x1004b76f
mov ecx, dword [esp + 0x34]
push 0
push ebx
push ecx
mov ecx, eax
call fcn.10047740
jmp 0x1004b771
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.1004ca70
mov ecx, dword [esp + 0x18]
call fcn.10048310
mov edi, dword [esp + 0x18]
test edi, edi
je 0x1004ba0a
mov ecx, edi
call fcn.10053880
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 0x1004b99b
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 0x1004b899
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 0x1004b820
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.100d02fa
add esp, 4
mov ecx, edi
call fcn.10047b70
push 0x28
call fcn.100ddb85
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0xc8], 5
je 0x1004b92f
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.10053630
jmp 0x1004b931
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.1004c7c0
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 0x1004b994
mov al, byte [ecx - 1]
test al, al
je 0x1004b98a
cmp al, 0xff
je 0x1004b98a
dec al
mov byte [ecx - 1], al
mov eax, esi
jmp 0x1004ba47
dec ecx
push ecx
call fcn.100d02fa
add esp, 4
mov eax, esi
jmp 0x1004ba47
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
mov dword [esp + 0x28], edi
call fcn.100518b0
lea ecx, [esp + 0x24]
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, ebx
mov esi, eax
call fcn.100511e0
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.10051f80
add esp, 0x10
lea edx, [esp + 0x44]
mov ecx, ebx
push esi
push edi
push edx
call fcn.1004cba0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1004ba0a
mov ecx, dword [esp + 0x24]
test ecx, ecx
mov esi, ecx
je 0x1004ba0a
call fcn.10047ad0
push esi
call fcn.100d02fa
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.100d02fa
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.100d02fa
mov edx, dword [esp + 0x40]
push edx
call fcn.100d02fa
add esp, 0xc
jmp 0x1004b524
dec ecx
push ecx
call fcn.100d02fa
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