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

Disassembly:
mov eax, dword [esp + 0x2c]
sub esp, 0xc4
push ebx
xor ebx, ebx
cmp eax, ebx
push ebp
je 0x4882e6
cmp byte [eax], 0
je 0x4882e6
mov ebp, dword [esp + 0xd4]
cmp ebp, ebx
je 0x4882e6
mov eax, dword [esp + 0xf0]
push esi
push edi
push eax
call fcn.0043c610
mov ecx, dword [esp + 0x100]
push ecx
mov dword [esp + 0x100], eax
call fcn.0043c610
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x118]
add esp, 8
cmp eax, ebx
je 0x48733a
push 0xe
call edi
mov esi, dword [esp + 0xd8]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xd
mov dword [esp + 0x64], eax
call edi
push eax
jmp 0x487387
cmp dword [esp + 0x114], ebx
mov esi, dword [esp + 0xd8]
je 0x48735e
push esi
call dword [sym.imp.GDI32.dll_GetTextColor]
push esi
mov dword [esp + 0x64], eax
call dword [sym.imp.GDI32.dll_GetBkColor]
jmp 0x48738e
mov edx, dword [esp + 0xf8]
mov eax, dword [edx*4 + 0x638070]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0xfc]
mov edx, dword [ecx*4 + 0x638070]
mov dword [esp + 0x60], eax
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x118]
mov dword [esp + 0x34], eax
xor eax, eax
cmp ecx, 2
mov ecx, dword [esp + 0xfc]
sete al
mov dword [esp + 0x38], ecx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x9c], ebx
lea eax, [eax + eax + 4]
mov dword [esp + 0x40], eax
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x78], eax
cmp dword [0x61b5c4], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], ebx
jne 0x48741a
cmp dword [esp + 0x120], ebx
je 0x487433
push ebp
call fcn.005868a0
add esp, 4
cmp eax, 2
mov dword [esp + 0xa0], 1
je 0x48743a
mov dword [esp + 0xa0], ebx
mov eax, dword [0x693624]
cmp eax, ebx
mov dword [esp + 0xc0], eax
mov dword [esp + 0xac], 0xffffffff
je 0x48746d
mov edx, dword [esp + 0x10c]
push edx
push esi
call fcn.0049cd10
add esp, 8
mov dword [esp + 0xac], eax
push esi
call fcn.00529df0
xor edi, edi
add esp, 4
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov eax, ebp
mov dword [esp + 0x2c], edi
lea edx, [eax + 1]
jmp 0x487490
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x487490
sub eax, edx
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x128]
xor ecx, ecx
cmp eax, ecx
mov eax, dword [esp + 0x124]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x44], ecx
jne 0x4874c4
push ecx
lea eax, [esp + 0x48]
push eax
jmp 0x4874db
cmp eax, ecx
je 0x4874d4
mov ecx, dword [eax + 0x189c]
mov dword [esp + 0x44], ecx
jmp 0x4874e6
push 0
lea edx, [esp + 0x48]
push edx
push 0
push esi
call fcn.0049ab30
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 0x4875ba
mov eax, dword [esp + 0x110]
test eax, eax
je 0x48754d
push 0xd
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
jmp 0x48756b
mov eax, dword [esp + 0x114]
test eax, eax
je 0x48755f
mov eax, dword [esp + 0x34]
push eax
jmp 0x48756b
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx*4 + 0x638070]
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 + 0x5c], edx
mov edx, dword [esp + 0x30]
push 0x5f4c90
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x58]
push eax
push 6
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0xfc]
push ecx
push edx
push esi
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], edx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
add ecx, edx
mov edx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0xa8], eax
lea esp, [esp]
cmp edi, dword [esp + 0xb8]
jge 0x4879fa
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x48774e
push edi
push ebp
call fcn.005867a0
add esp, 8
test eax, eax
jg 0x487618
cmp eax, 0xffffffff
je 0x487618
cmp eax, 0xfffffffe
jne 0x48774a
mov dword [esp + 0xa8], 1
mov edx, dword [esp + 0x18]
cmp edx, 0xffffffff
jne 0x487634
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x488082
mov eax, dword [esp + 0x3c]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0xcc], ebx
je 0x4876bf
mov ebp, dword [esp + 0x128]
mov edi, dword [esp + 0xe8]
mov ecx, 1
cmp ebp, ecx
mov dword [esp + 0x88], ecx
jne 0x48767f
mov edi, 2
cmp eax, ebx
jle 0x4876b5
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x124]
mov edi, edi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0xb4]
push edx
push eax
push edi
push ebp
call fcn.00529d90
add esp, 0x10
dec ebx
mov dword [esp + 0xcc], eax
jne 0x487690
mov edx, dword [esp + 0x18]
mov dword [esp + 0x3c], 0
xor ebx, ebx
cmp edx, ebx
jl 0x487ced
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x487ced
cmp eax, edx
jl 0x487ced
sub eax, edx
xor edi, edi
test eax, eax
mov dword [esp + 0x10], eax
jle 0x487ced
mov ecx, dword [esp + 0xa8]
test ecx, ecx
je 0x487a3e
mov ebx, dword [esp + 0xdc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
call fcn.00587700
add esp, 0xc
test eax, eax
je 0x487a3a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push eax
add ecx, ebx
push ecx
call fcn.00584e40
mov edi, eax
add esp, 8
test edi, edi
je 0x487a3a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x10], eax
jmp 0x487a3e
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x487779
push edi
push ebp
call fcn.005dd489
add esp, 8
cmp eax, 1
je 0x487623
cmp eax, 2
je 0x487623
mov edx, dword [esp + 0x18]
movzx ecx, byte [edi + ebp]
lea eax, [edi + ebp]
add ecx, 0xfffffffe
cmp ecx, 0x1d
ja case.0x487793.4
movzx ecx, byte [ecx + 0x488314]
jmp dword [ecx*4 + 0x4882f4]
test byte [esp + 0x11c], 4
jne case.0x487793.4
test ebx, ebx
je 0x4877b9
mov dword [esp + 0x30], 1
jmp case.0x487793.4
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4877cd
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x64]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0x64], eax
jmp 0x488082
test byte [esp + 0x11c], 4
jne case.0x487793.4
test ebx, ebx
je 0x487800
mov dword [esp + 0x30], 1
jmp case.0x487793.4
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x487814
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x48]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esp + 0x48], ecx
jmp 0x488082
test byte [esp + 0x11c], 4
jne case.0x487793.4
test ebx, ebx
je 0x487847
mov dword [esp + 0x30], 1
jmp case.0x487793.4
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x48785b
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x6c]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0x6c], eax
jmp 0x488082
test byte [esp + 0x11c], 4
jne case.0x487793.4
test ebx, ebx
je 0x48788e
mov dword [esp + 0x30], 1
jmp case.0x487793.4
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x4878a2
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x78]
push ecx
push edx
lea ecx, [esp + 0x104]
push ecx
lea edx, [esp + 0x104]
push edx
push eax
call fcn.00529b50
mov edx, dword [esp + 0x2c]
add esp, 0x14
add edi, eax
mov dword [esp + 0x2c], edi
jmp 0x488082
test byte [esp + 0x11c], 4
jne case.0x487793.4
xor ecx, ecx
cmp ebx, ecx
je 0x4878f5
mov dword [esp + 0x30], 1
jmp case.0x487793.4
cmp dword [esp + 0x14], ecx
jne 0x487907
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], edi
mov ebx, dword [esp + 0x11c]
test bh, 1
je 0x487933
cmp byte [eax + 1], 0xf
jne 0x487933
inc edi
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x84]
xor eax, eax
cmp edi, ecx
sete al
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xfc], eax
jmp 0x488082
test byte [esp + 0x11c], 4
jne case.0x487793.4
mov eax, dword [esp + 0x124]
test eax, eax
je case.0x487793.4
mov ecx, eax
cmp dword [ecx + 0x1314], 9
jne case.0x487793.4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x48799f
test ebx, ebx
jne 0x4879ab
mov dword [esp + 0x30], 1
jmp case.0x487793.4
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], edi
inc ebx
mov dword [esp + 0x3c], ebx
jmp 0x488082
test byte [esp + 0x11c], 0x40
je case.0x487793.4
cmp byte [eax + 1], 0xa
jne case.0x487793.4
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4879e1
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], edi
inc edi
mov dword [esp + 0x80], 1
mov dword [esp + 0x2c], edi
jmp 0x488082
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
cmp eax, edx
jle 0x487a08
mov edi, eax
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x4880e2
cmp edi, edx
jg 0x487a24
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4880e2
mov eax, 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
jmp case.0x487793.4
mov eax, dword [esp + 0x10]
xor ebx, ebx
test edi, edi
mov dword [esp + 0xb0], 0
mov dword [esp + 0x7c], ebx
je 0x487a90
push 1
push str.drawline_fill
push ebx
push eax
push edi
push esi
call fcn.00499b90
mov edx, dword [esp + 0x28]
push ebx
push str.drawline_start
push ebx
push edx
push edi
push esi
call fcn.00499b90
add esp, 0x30
test eax, eax
jle 0x487a90
mov ebx, dword [esp + 0x10]
mov dword [esp + 0xb0], edi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x10], eax
push esi
call fcn.00529df0
add esp, 4
test edi, edi
push 0
mov ebp, eax
push 0
je 0x487aad
mov eax, dword [esp + 0x18]
push 2
push eax
push edi
jmp 0x487ac2
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0xe4]
push 0
push ecx
add edx, eax
push edx
push esi
call fcn.0052a000
sub eax, ebp
add esp, 0x18
test eax, eax
jge 0x487ad3
xor eax, eax
mov ecx, dword [esp + 0x88]
test ecx, ecx
mov ecx, dword [esp + 0x1c]
je 0x487b28
mov edx, dword [esp + 0x124]
test edx, edx
je 0x487b12
mov ebp, dword [edx + 0x1454]
test ebp, ebp
jne 0x487b12
mov edx, dword [esp + 0xcc]
mov ebp, edx
sub ebp, ecx
cmp ebp, eax
jge 0x487b19
lea edx, [eax + ecx]
mov dword [esp + 0xcc], edx
jmp 0x487b19
mov edx, dword [esp + 0xcc]
lea ebp, [eax + ecx]
cmp ebp, edx
jle 0x487b28
mov eax, edx
sub eax, ecx
jns 0x487b28
xor eax, eax
mov edx, dword [esp + 0xf0]
add eax, ecx
cmp eax, edx
mov dword [esp + 0x24], eax
jl 0x487b3f
mov eax, edx
mov dword [esp + 0x24], eax
cmp ecx, eax
jge 0x487c81
mov eax, dword [esp + 0x70]
test eax, eax
je 0x487c45
mov eax, dword [esp + 0x110]
test eax, eax
jne 0x487c45
mov eax, dword [esp + 0x128]
test eax, eax
je 0x487bc6
cmp eax, 1
jne 0x487c45
mov edx, dword [0x63cac0]
push edx
call fcn.0043c610
mov eax, dword [eax*4 + 0x638070]
add esp, 4
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x63cabc]
push ecx
mov ebp, eax
call fcn.0043c610
mov edx, dword [eax*4 + 0x638070]
add esp, 4
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
test edi, edi
mov ebx, eax
je 0x487bfe
mov eax, dword [esp + 0x10]
push 2
push 0
push eax
push edi
jmp 0x487c15
mov ecx, dword [0x63ca90]
push ecx
call fcn.0043c610
mov edx, dword [eax*4 + 0x638070]
add esp, 4
push edx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ebp, eax
mov eax, dword [0x63caa4]
push eax
call fcn.0043c610
mov ecx, dword [eax*4 + 0x638070]
add esp, 4
push ecx
jmp 0x487bad
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xdc]
push 0
push 0
push ecx
add edx, eax
push edx
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push ecx
push 6
push edx
push eax
push esi
call fcn.00529ed0
add esp, 0x24
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 + 0x7c]
jmp 0x487c81
test edi, edi
mov edx, dword [esp + 0x10]
je 0x487c55
push 2
push 0
push edx
push edi
jmp 0x487c68
mov eax, dword [esp + 0x18]
push 0
push 0
push edx
mov edx, dword [esp + 0xe8]
add eax, edx
push eax
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x34]
push edx
push eax
push ecx
push esi
call fcn.00529ed0
add esp, 0x24
mov ebp, dword [esp + 0xb0]
test ebp, ebp
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], ecx
je 0x487ce0
mov eax, dword [esp + 0x10]
sub ebx, eax
test ebx, ebx
lea edi, [edi + eax*2]
mov dword [esp + 0x7c], ebx
push 0
jle 0x487cca
push str.drawline_next
push 1
push ebx
push edi
push esi
call fcn.00499b90
add esp, 0x18
test eax, eax
jg 0x487a8c
mov dword [esp + 0x10], ebx
jmp 0x487a90
push str.drawline_end
push 2
push 0
push 0
push esi
call fcn.00499b90
add esp, 0x18
mov edi, ebp
test edi, edi
je 0x487ced
push edi
call fcn.005d9fa3
add esp, 4
mov eax, dword [esp + 0x88]
xor ebp, ebp
cmp eax, ebp
je 0x487e52
mov ecx, dword [esp + 0xcc]
cmp dword [esp + 0x24], ecx
jge 0x487d4d
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
push ebp
push ebp
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x2c]
push 0x5f4c90
mov dword [esp + 0x60], edx
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x50]
push ecx
push eax
push edx
push esi
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], edi
mov dword [esp + 0x6c], edx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
cmp dword [esp + 0x70], ebp
je 0x487e23
cmp dword [esp + 0x110], ebp
jne 0x487e23
mov eax, dword [esp + 0x128]
cmp eax, ebp
je 0x487dea
cmp eax, 1
jne 0x487e23
mov eax, dword [0x63cac0]
push eax
call fcn.0043c610
mov ecx, dword [eax*4 + 0x638070]
add esp, 4
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [0x63cabc]
push edx
mov edi, eax
call fcn.0043c610
mov eax, dword [eax*4 + 0x638070]
add esp, 4
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x20]
push 0
push 0
push 0x5f4c90
lea ecx, [esp + 0x28]
push ecx
push 6
mov ebp, eax
mov eax, dword [esp + 0x30]
push edx
push eax
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 0x487e45
mov edx, dword [0x63ca90]
push edx
call fcn.0043c610
mov eax, dword [eax*4 + 0x638070]
add esp, 4
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x63caa4]
push ecx
mov edi, eax
call fcn.0043c610
mov edx, dword [eax*4 + 0x638070]
add esp, 4
push edx
jmp 0x487dae
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
push ebp
push ebp
push 0x5f4c90
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov edx, dword [esp + 0xcc]
mov dword [esp + 0x1c], edx
xor ebp, ebp
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x64]
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x70], eax
cmp dword [esp + 0xa4], edi
jne 0x487e78
cmp dword [esp + 0x9c], ebx
je 0x487f15
mov eax, dword [esp + 0x68]
cmp eax, ebp
mov dword [esp + 0xa4], edi
mov dword [esp + 0x9c], ebx
je 0x487e9a
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x68], ebp
mov eax, dword [esp + 0x74]
cmp eax, ebp
je 0x487ea9
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp edi, ebp
mov eax, dword [esp + 0x108]
je 0x487ecd
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 ebp
mov edx, dword [esp + 0x10c]
push ebp
push ebp
push ebp
push ecx
push ebp
push ebx
push ebp
push eax
push ebp
push ebp
push ebp
neg edx
push edx
call dword [sym.imp.GDI32.dll_CreateFontA]
cmp eax, ebp
mov dword [esp + 0x74], eax
je 0x487f0c
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x68], eax
push esi
call fcn.00529df0
add esp, 4
cmp dword [esp + 0x80], ebp
je 0x487faf
cmp dword [esp + 0x118], 2
mov dword [esp + 0x80], ebp
jne 0x487f8e
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
push ebp
push ebp
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0xf8]
push 0x5f4c90
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa0], edx
lea edx, [esp + 0x98]
push edx
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x30]
push 6
push eax
push ecx
push esi
mov dword [esp + 0xb0], eax
mov dword [esp + 0xac], ecx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
add eax, ecx
mov dword [esp + 0x28], eax
cmp dword [esp + 0x110], ebp
je 0x487fd1
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 0x488026
mov edi, dword [esp + 0x114]
cmp edi, ebp
je 0x487ff0
mov eax, dword [esp + 0xf8]
cmp eax, dword [esp + 0x78]
jne 0x487ff0
mov ecx, dword [esp + 0x60]
push ecx
jmp 0x487fff
mov edx, dword [esp + 0xf8]
mov eax, dword [edx*4 + 0x638070]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp edi, ebp
mov eax, dword [esp + 0xfc]
je 0x48801e
cmp eax, dword [esp + 0x38]
jne 0x48801e
mov ecx, dword [esp + 0x34]
push ecx
jmp 0x488026
mov edx, dword [eax*4 + 0x638070]
push edx
mov edi, dword [sym.imp.GDI32.dll_SetBkColor]
push esi
call edi
cmp dword [esp + 0x84], ebp
je 0x48804e
push 0xffffffffffffffec
push esi
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
call fcn.0055ce10
add esp, 8
push eax
push esi
call edi
mov eax, dword [esp + 0x38]
cmp dword [esp + 0xfc], eax
je 0x488065
mov dword [esp + 0x40], 6
jmp 0x488070
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0x40], ecx
cmp dword [esp + 0x30], ebp
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ebp
jne 0x4880c3
mov eax, dword [esp + 0xf0]
cmp dword [esp + 0x24], eax
jl 0x48809c
mov dword [esp + 0x5c], 1
jmp 0x4879f6
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x4879f6
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0xdc]
inc eax
mov dword [esp + 0x2c], eax
mov edi, eax
jmp 0x4875e0
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
or edx, 0xffffffff
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0xdc]
mov dword [esp + 0x18], edx
jmp 0x4875e0
cmp dword [esp + 0x118], 2
jne 0x48828b
mov eax, dword [esp + 0x110]
test eax, eax
je 0x488105
push 0xd
call dword [sym.imp.USER32.dll_GetSysColor]
jmp 0x48812b
mov eax, dword [esp + 0x114]
test eax, eax
je 0x488120
mov ecx, dword [esp + 0x34]
mov ebp, dword [sym.imp.GDI32.dll_SetBkColor]
push ecx
push esi
call ebp
jmp 0x488139
mov edx, dword [esp + 0x38]
mov eax, dword [edx*4 + 0x638070]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ebp, dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.GDI32.dll_ExtTextOutA]
push 0
push 0
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0xf8]
push 0x5f4c90
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 6
push ecx
push eax
push esi
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xac], eax
call ebx
mov edx, dword [esp + 0x124]
test edx, edx
je 0x48828b
mov eax, dword [edx + 0x1360]
cmp eax, 1
je 0x4881f0
cmp eax, 2
mov ecx, dword [0x680f7c]
jne 0x4881c2
cmp ecx, 1
je 0x4881f0
cmp eax, 3
je 0x4881d8
cmp eax, 2
jne 0x48828b
cmp ecx, eax
jne 0x48828b
mov ecx, dword [edx + 0x189c]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov edi, edx
jmp 0x4881f6
mov edi, dword [edx + 0x189c]
test edi, edi
je 0x48828b
mov eax, dword [esp + 0x110]
test eax, eax
je 0x488213
push 0xd
call dword [sym.imp.USER32.dll_GetSysColor]
jmp 0x488230
mov eax, dword [esp + 0x114]
test eax, eax
je 0x488225
mov ecx, dword [esp + 0x34]
push ecx
jmp 0x488231
mov edx, dword [esp + 0x38]
mov eax, dword [edx*4 + 0x638070]
push eax
push esi
call ebp
mov eax, dword [esp + 0xf0]
mov edx, dword [esp + 0xec]
mov ecx, dword [esp + 0xe8]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0xf4]
add edi, eax
cmp edi, edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], edi
jle 0x488276
mov dword [esp + 0x58], edx
push 0
push 0
push 0x5f4c90
lea edx, [esp + 0x58]
push edx
push 6
push eax
push ecx
push esi
call ebx
mov eax, dword [esp + 0xac]
test eax, eax
jl 0x48829f
push eax
call fcn.005dd2dc
add esp, 4
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4882af
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4882be
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x60]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x34]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc4
ret
pop ebp
xor eax, eax
pop ebx
add esp, 0xc4
ret