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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xc4
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x486b72
cmp byte [eax], 0
je 0x486b72
mov eax, dword [esp + 0xf4]
cmp eax, ebx
je 0x486b72
cmp byte [eax], 0
je 0x486b72
mov eax, dword [esp + 0xec]
push ebp
push esi
push edi
push eax
call fcn.0043bf80
mov ecx, dword [esp + 0x100]
push ecx
mov dword [esp + 0x100], eax
call fcn.0043bf80
mov edi, dword [sym.imp.GDI32.dll_SetTextColor]
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x118]
add esp, 8
cmp eax, ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0x48], ebx
je 0x485d2c
push 0xe
call ebp
mov esi, dword [esp + 0xd8]
push eax
push esi
call edi
push 0xd
call ebp
push eax
jmp 0x485d78
cmp dword [esp + 0x114], ebx
mov esi, dword [esp + 0xd8]
je 0x485d57
push esi
call dword [sym.imp.GDI32.dll_GetTextColor]
push esi
mov dword [esp + 0xa8], eax
call dword [sym.imp.GDI32.dll_GetBkColor]
mov dword [esp + 0x48], eax
jmp 0x485d7f
mov edx, dword [esp + 0xf8]
mov eax, dword [edx*4 + 0x612870]
push eax
push esi
call edi
mov ecx, dword [esp + 0xfc]
mov edx, dword [ecx*4 + 0x612870]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x118]
xor eax, eax
cmp ecx, 2
mov ecx, dword [esp + 0xfc]
sete al
mov dword [esp + 0x34], ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0xac], ebx
lea eax, [eax + eax + 4]
mov dword [esp + 0x5c], eax
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x74], eax
cmp dword [0x60a514], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x3c], ebx
jne 0x485e01
cmp dword [esp + 0x120], ebx
je 0x485e21
mov edx, dword [esp + 0xdc]
push edx
call fcn.0057ab30
add esp, 4
cmp eax, 2
mov dword [esp + 0xa0], 1
je 0x485e28
mov dword [esp + 0xa0], ebx
mov eax, dword [0x642ee4]
cmp eax, ebx
mov dword [esp + 0xc0], eax
mov dword [esp + 0x68], 0xffffffff
je 0x485e55
mov eax, dword [esp + 0x10c]
push eax
push esi
call fcn.0049a850
add esp, 8
mov dword [esp + 0x68], eax
push esi
call fcn.00522d40
mov eax, dword [esp + 0xe0]
xor edi, edi
add esp, 4
xor ebp, ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x485e74
sub eax, edx
xor ecx, ecx
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x124]
cmp eax, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x78], ecx
je 0x485ea5
mov ecx, dword [eax + 0xa00]
mov dword [esp + 0x78], ecx
jmp 0x485eb7
push 0
lea edx, [esp + 0x7c]
push edx
push 0
push esi
call fcn.00498990
add esp, 0x10
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0xe0]
mov edx, dword [esp + 0xf4]
mov ecx, dword [esp + 0xec]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xe4]
sub edx, ecx
add edx, eax
mov dword [esp + 0x20], eax
cmp dword [esp + 0x118], 2
mov dword [esp + 0x28], edx
jne 0x485fa0
mov eax, dword [esp + 0x110]
test eax, eax
je 0x485f1e
push 0xd
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
jmp 0x485f3c
mov eax, dword [esp + 0x114]
test eax, eax
je 0x485f30
mov eax, dword [esp + 0x48]
push eax
jmp 0x485f3c
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx*4 + 0x612870]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push 0
push 0
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x30]
push 0x5e6c98
mov dword [esp + 0x98], eax
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x98]
push eax
push 6
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0xfc]
push ecx
push edx
push esi
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xac], edx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov edx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0xa8], eax
cmp edi, dword [esp + 0xb8]
jge 0x486386
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x4860f6
mov ecx, dword [esp + 0xdc]
push edi
push ecx
call fcn.0057aa30
add esp, 8
test eax, eax
jg 0x485ff0
cmp eax, 0xffffffff
je 0x485ff0
cmp eax, 0xfffffffe
jne 0x4860f2
mov dword [esp + 0xa8], 1
mov edx, dword [esp + 0x18]
cmp edx, 0xffffffff
jne 0x48600a
mov edx, ebp
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x486a21
mov eax, dword [esp + 0x38]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0xcc], ecx
je 0x486079
mov dword [esp + 0x60], 1
jle 0x486071
mov ebx, dword [esp + 0x124]
mov edi, eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xe8]
lea ecx, [esp + 0xb4]
push ecx
push edx
add eax, 2
push eax
push ebx
call fcn.00522ce0
add esp, 0x10
dec edi
mov dword [esp + 0xcc], eax
jne 0x486042
mov edx, dword [esp + 0x18]
mov dword [esp + 0x38], 0
cmp ebp, edx
jle 0x486655
sub ebp, edx
mov eax, ebp
xor edi, edi
test eax, eax
mov dword [esp + 0x14], eax
jle 0x486655
mov ecx, dword [esp + 0xa8]
test ecx, ecx
je 0x4863c4
mov ebx, dword [esp + 0xdc]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
call fcn.0057b760
add esp, 0xc
test eax, eax
je 0x4863c0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
add ecx, ebx
push ecx
call fcn.00579010
mov edi, eax
add esp, 8
test edi, edi
je 0x4863c0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x14], eax
jmp 0x4863c4
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x486128
mov edx, dword [esp + 0xdc]
push edi
push edx
call fcn.005cf858
add esp, 8
cmp eax, 1
je 0x485ffb
cmp eax, 2
je 0x485ffb
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xdc]
movzx ecx, byte [eax + edi]
add eax, edi
add ecx, 0xfffffffe
cmp ecx, 0x1d
ja case.0x486148.4
movzx ecx, byte [ecx + 0x486b9c]
jmp dword [ecx*4 + 0x486b7c]
test byte [esp + 0x11c], 4
jne case.0x486148.4
test ebx, ebx
je 0x48616e
mov dword [esp + 0x30], 1
jmp case.0x486148.4
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x486180
mov dword [esp + 0x10], 1
mov ebp, edi
mov ecx, dword [esp + 0x58]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0x58], eax
jmp 0x486a21
test byte [esp + 0x11c], 4
jne case.0x486148.4
test ebx, ebx
je 0x4861b3
mov dword [esp + 0x30], 1
jmp case.0x486148.4
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4861c5
mov dword [esp + 0x10], 1
mov ebp, edi
mov eax, dword [esp + 0x44]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esp + 0x44], ecx
jmp 0x486a21
test byte [esp + 0x11c], 4
jne case.0x486148.4
test ebx, ebx
je 0x4861f8
mov dword [esp + 0x30], 1
jmp case.0x486148.4
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x48620a
mov dword [esp + 0x10], 1
mov ebp, edi
mov ecx, dword [esp + 0x4c]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0x4c], eax
jmp 0x486a21
test byte [esp + 0x11c], 4
jne case.0x486148.4
test ebx, ebx
je 0x48623d
mov dword [esp + 0x30], 1
jmp case.0x486148.4
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x48624f
mov dword [esp + 0x10], 1
mov ebp, edi
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x104]
push ecx
lea edx, [esp + 0x104]
push edx
push eax
call fcn.00522aa0
mov edx, dword [esp + 0x2c]
add esp, 0x14
add edi, eax
mov dword [esp + 0x2c], edi
jmp 0x486a21
test byte [esp + 0x11c], 4
jne case.0x486148.4
xor eax, eax
cmp ebx, eax
je 0x4862a2
mov dword [esp + 0x30], 1
jmp case.0x486148.4
cmp dword [esp + 0x10], eax
jne 0x4862b2
mov dword [esp + 0x10], 1
mov ebp, edi
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], ecx
jmp 0x486a21
test byte [esp + 0x11c], 4
jne case.0x486148.4
mov eax, dword [esp + 0x124]
test eax, eax
je case.0x486148.4
cmp dword [eax + 0x71c], 9
jne case.0x486148.4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x48631c
test ebx, ebx
jne 0x486326
mov dword [esp + 0x30], 1
jmp case.0x486148.4
mov dword [esp + 0x10], 1
mov ebp, edi
inc ebx
mov dword [esp + 0x38], ebx
jmp 0x486a21
test byte [esp + 0x11c], 0x40
je case.0x486148.4
cmp byte [eax + 1], 0xa
jne case.0x486148.4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x486365
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x48636f
mov dword [esp + 0x64], 1
jmp case.0x486148.4
mov dword [esp + 0x10], 1
mov ebp, edi
mov ecx, dword [esp + 0x3c]
inc ecx
inc edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], edi
jmp 0x486a21
mov edi, dword [esp + 0x2c]
cmp ebp, edx
jle 0x486390
mov edi, ebp
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x486a8b
cmp edi, edx
jg 0x4863ac
mov eax, dword [esp + 0x10]
test eax, eax
je 0x486a8b
mov eax, 1
mov dword [esp + 0x50], eax
mov ebp, edi
mov dword [esp + 0x10], eax
jmp case.0x486148.4
mov eax, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x70], ebx
je 0x486412
push 1
push str.drawline_fill
push ebx
push eax
push edi
push esi
call fcn.00497b40
mov edx, dword [esp + 0x2c]
push ebx
push str.drawline_start
push ebx
push edx
push edi
push esi
call fcn.00497b40
add esp, 0x30
cmp eax, ebx
jle 0x486412
mov ebx, dword [esp + 0x14]
mov dword [esp + 0xb0], edi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x14], eax
push esi
call fcn.00522d40
add esp, 4
test edi, edi
push 0
mov ebp, eax
push 0
je 0x48642f
mov eax, dword [esp + 0x1c]
push 2
push eax
push edi
jmp 0x486444
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0xe4]
push 0
push ecx
add edx, eax
push edx
push esi
call fcn.00522d60
mov ecx, dword [esp + 0x78]
add esp, 0x18
sub eax, ebp
test ecx, ecx
mov ecx, dword [esp + 0x1c]
je 0x486471
mov edx, dword [esp + 0xcc]
lea ebp, [eax + ecx]
cmp ebp, edx
jle 0x486471
mov eax, edx
sub eax, ecx
jns 0x486471
xor eax, eax
lea edx, [eax + ecx]
mov eax, dword [esp + 0xf0]
cmp edx, eax
mov dword [esp + 0x24], edx
jl 0x486489
mov edx, eax
mov dword [esp + 0x24], edx
cmp ecx, edx
jge 0x4865e9
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x48659f
mov eax, dword [esp + 0x110]
test eax, eax
jne 0x48659f
mov eax, dword [esp + 0x128]
test eax, eax
je 0x486526
cmp eax, 1
jne 0x48659f
mov edx, dword [0x6136c0]
push edx
call fcn.0043bf80
mov eax, dword [eax*4 + 0x612870]
add esp, 4
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x6136bc]
push ecx
mov ebp, eax
call fcn.0043bf80
mov edx, dword [eax*4 + 0x612870]
add esp, 4
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
test edi, edi
mov ebx, eax
push 0
je 0x48655e
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push edi
lea ecx, [esp + 0x28]
push ecx
push 6
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
jmp 0x486589
mov ecx, dword [0x613690]
push ecx
call fcn.0043bf80
mov edx, dword [eax*4 + 0x612870]
add esp, 4
push edx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ebp, eax
mov eax, dword [0x6136a4]
push eax
call fcn.0043bf80
mov ecx, dword [eax*4 + 0x612870]
add esp, 4
push ecx
jmp 0x4864f7
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xe0]
push ecx
add edx, eax
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x28]
push ecx
push 6
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push ebp
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ebx, dword [esp + 0x70]
jmp 0x4865e9
test edi, edi
mov edx, dword [esp + 0x14]
push 0
push edx
je 0x4865c4
mov edx, dword [esp + 0x64]
push edi
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push edx
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
jmp 0x4865e9
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0xe4]
add eax, edx
mov edx, dword [esp + 0x64]
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push edx
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov ebp, dword [esp + 0xb0]
test ebp, ebp
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], ecx
je 0x486648
mov eax, dword [esp + 0x14]
sub ebx, eax
test ebx, ebx
lea edi, [edi + eax*2]
mov dword [esp + 0x70], ebx
push 0
jle 0x486632
push str.drawline_next
push 1
push ebx
push edi
push esi
call fcn.00497b40
add esp, 0x18
test eax, eax
jg 0x48640e
mov dword [esp + 0x14], ebx
jmp 0x486412
push str.drawline_end
push 2
push 0
push 0
push esi
call fcn.00497b40
add esp, 0x18
mov edi, ebp
test edi, edi
je 0x486655
push edi
call fcn.005cc393
add esp, 4
mov ebp, dword [esp + 0x110]
test ebp, ebp
je 0x486679
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 0xe
call edi
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xd
call edi
push eax
jmp 0x4866d1
mov edi, dword [esp + 0x114]
test edi, edi
je 0x48669b
mov edx, dword [esp + 0xf8]
cmp edx, dword [esp + 0x74]
jne 0x48669b
mov eax, dword [esp + 0xa4]
push eax
jmp 0x4866aa
mov ecx, dword [esp + 0xf8]
mov edx, dword [ecx*4 + 0x612870]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
test edi, edi
mov eax, dword [esp + 0xfc]
je 0x4866c9
cmp eax, dword [esp + 0x34]
jne 0x4866c9
mov eax, dword [esp + 0x48]
push eax
jmp 0x4866d1
mov ecx, dword [eax*4 + 0x612870]
push ecx
mov ebx, dword [sym.imp.GDI32.dll_SetBkColor]
push esi
call ebx
mov edx, dword [esp + 0x34]
cmp dword [esp + 0xfc], edx
mov edi, 6
jne 0x4866f3
mov edi, dword [esp + 0xbc]
mov eax, dword [esp + 0x60]
test eax, eax
mov dword [esp + 0x5c], edi
je 0x486866
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0xcc]
cmp eax, edx
jge 0x486763
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x28]
push 0
push 0
push 0x5e6c98
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa0], edx
lea edx, [esp + 0x98]
push edx
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x30]
push edi
push ecx
push eax
push esi
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xac], eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x486835
test ebp, ebp
jne 0x486835
mov eax, dword [esp + 0x128]
test eax, eax
je 0x4867fd
cmp eax, 1
jne 0x486835
mov ecx, dword [0x6136c0]
push ecx
call fcn.0043bf80
mov edx, dword [eax*4 + 0x612870]
add esp, 4
push edx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edi, eax
mov eax, dword [0x6136bc]
push eax
call fcn.0043bf80
mov ecx, dword [eax*4 + 0x612870]
add esp, 4
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0x5e6c98
lea edx, [esp + 0x28]
push edx
push 6
mov ebp, eax
mov eax, dword [esp + 0x34]
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push edi
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push ebp
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
jmp 0x486855
mov eax, dword [0x613690]
push eax
call fcn.0043bf80
mov ecx, dword [eax*4 + 0x612870]
add esp, 4
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [0x6136a4]
push edx
mov edi, eax
call fcn.0043bf80
mov eax, dword [eax*4 + 0x612870]
add esp, 4
push eax
jmp 0x4867c1
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0x5e6c98
lea edx, [esp + 0x28]
push edx
push edi
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov edx, dword [esp + 0xcc]
mov ebx, dword [sym.imp.GDI32.dll_SetBkColor]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x58]
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x6c], eax
cmp dword [esp + 0x9c], edi
jne 0x48688c
cmp dword [esp + 0xac], ebp
je 0x486936
mov eax, dword [esp + 0x40]
test eax, eax
mov dword [esp + 0x9c], edi
mov dword [esp + 0xac], ebp
je 0x4868b2
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4868c1
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test edi, edi
mov eax, dword [esp + 0x108]
je 0x4868e5
xor ecx, ecx
cmp eax, 0x190
setne cl
dec ecx
and ecx, 0x12c
add ecx, 0x190
mov eax, ecx
mov edx, dword [esp + 0x100]
mov ecx, dword [esp + 0x10c]
push edx
push 0
mov edx, dword [esp + 0x10c]
push 0
push 0
push 0
push ecx
push 0
push ebp
push 0
push eax
push 0
push 0
push 0
neg edx
push edx
call dword [sym.imp.GDI32.dll_CreateFontA]
test eax, eax
mov dword [esp + 0x54], eax
je 0x48692d
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x40], eax
push esi
call fcn.00522d40
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x486a09
cmp dword [esp + 0x118], 2
mov dword [esp + 0x3c], 0
jne 0x4869ec
mov eax, dword [esp + 0x110]
test eax, eax
je 0x48696e
push 0xd
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
jmp 0x48698c
mov eax, dword [esp + 0x114]
test eax, eax
je 0x486980
mov eax, dword [esp + 0x48]
push eax
jmp 0x48698c
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx*4 + 0x612870]
push edx
push esi
call ebx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
push 0
push 0
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0xf8]
push 0x5e6c98
mov dword [esp + 0x90], eax
mov dword [esp + 0x90], edx
lea edx, [esp + 0x88]
push edx
push 6
push ecx
push eax
push esi
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x9c], eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x78]
add ecx, eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x18], edx
jne 0x486a5b
cmp dword [esp + 0x64], ebp
jne 0x486a73
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esp + 0xf0]
jl 0x486a3b
mov dword [esp + 0x50], 1
jmp 0x486382
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x486382
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x38]
inc eax
mov dword [esp + 0x2c], eax
mov edi, eax
jmp 0x485fb1
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x38]
or edx, 0xffffffff
mov dword [esp + 0x30], ebp
mov dword [esp + 0x18], edx
jmp 0x485fb1
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x38]
or edx, 0xffffffff
mov dword [esp + 0x64], ebp
mov dword [esp + 0x18], edx
jmp 0x485fb1
cmp dword [esp + 0x118], 2
jne 0x486b2e
mov eax, dword [esp + 0x110]
test eax, eax
je 0x486aaf
push 0xd
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
jmp 0x486acd
mov eax, dword [esp + 0x114]
test eax, eax
je 0x486ac1
mov edx, dword [esp + 0x48]
push edx
jmp 0x486acd
mov eax, dword [esp + 0x34]
mov ecx, dword [eax*4 + 0x612870]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x28]
push 0
push 0
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0xf8]
push 0x5e6c98
mov dword [esp + 0x90], eax
mov dword [esp + 0x90], edx
lea edx, [esp + 0x88]
push edx
push 6
push ecx
push eax
push esi
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x9c], eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0x68]
test eax, eax
jl 0x486b3f
push eax
call fcn.005cf6ab
add esp, 4
mov eax, dword [esp + 0x40]
test eax, eax
je 0x486b51
mov ecx, eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x54]
test eax, eax
pop edi
pop esi
pop ebp
je 0x486b65
mov edx, eax
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, 1
pop ebx
add esp, 0xc4
ret
xor eax, eax
pop ebx
add esp, 0xc4
ret