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

Disassembly:
sub esp, 0x19c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1b0]
mov eax, dword [edi + 0xa4c]
cmp eax, dword [edi + 0xa54]
jne 0x554344
mov dword [edi + 0xa60], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x19c
ret
lea ebx, [edi + 0xa48]
mov ecx, ebx
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0xc]
xor ebp, ebp
mov dword [esp + 0x58], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x30], ebp
call fcn.00582a20
cmp dword [edi], eax
mov esi, dword [esp + 0x1b4]
mov edx, dword [0x64355c]
jne 0x55441d
cmp dword [0x64532c], ebp
jne 0x5543a7
cmp dword [0x64366c], edi
je 0x554431
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
inc eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [0x64355c]
add ecx, 2
cmp eax, ebp
mov dword [esp + 0x34], 1
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], ecx
jne 0x554400
push ebp
lea eax, [esp + 0x24]
push eax
push esi
call fcn.0057c540
add esp, 0xc
test eax, eax
je 0x554400
mov dword [esp + 0x3c], 1
jmp 0x554492
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.00554230
push 1
lea edx, [esp + 0x1c]
push edx
push esi
call fcn.00554000
add esp, 0x14
jmp 0x554492
cmp dword [0x64366c], edi
je 0x554431
cmp edx, ebp
jne 0x554431
cmp dword [0x614744], ebp
je 0x554492
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
inc eax
add ecx, 2
cmp edx, ebp
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
jne 0x554483
push 1
lea edx, [esp + 0x24]
push edx
push esi
call fcn.0057c540
add esp, 0xc
test eax, eax
je 0x554483
mov dword [esp + 0x3c], 1
jmp 0x554492
push ebp
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00554000
add esp, 0xc
push ebp
push ebp
push ebp
lea eax, [edi + 0xa74]
push ebp
push eax
call dword [sym.imp.USER32.dll_SetRect]
cmp dword [edi + 0x71c], ebp
jne 0x55463f
cmp dword [edi + 0xa64], ebp
jne 0x55463f
mov ecx, ebx
mov edx, dword [ecx]
mov ebp, dword [ecx + 4]
mov eax, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
mov dword [esp + 0x20], edx
mov edx, dword [ebx]
lea ecx, [eax - 0xf]
add edx, 0x14
cmp ecx, edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], ecx
jle 0x55463f
mov edx, dword [esp + 0x1b0]
add edx, 0xa74
mov dword [edx], ecx
mov dword [edx + 4], ebp
mov dword [edx + 8], eax
sub eax, ecx
mov dword [edx + 0xc], edi
cdq
sub eax, edx
sar eax, 1
lea ebx, [eax + ecx + 1]
mov eax, edi
sub eax, ebp
cdq
sub eax, edx
push 0
mov edi, eax
push 1
sar edi, 1
push 0
add edi, ebp
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push esi
mov dword [esp + 0x4c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
mov dword [esp + 0x44], eax
lea eax, [ebx - 2]
push edi
push eax
push esi
mov dword [esp + 0x48], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ebp, dword [sym.imp.GDI32.dll_LineTo]
lea eax, [ebx + 2]
push edi
push eax
push esi
mov dword [esp + 0x5c], eax
call ebp
lea eax, [edi + 2]
push eax
push ebx
push esi
mov dword [esp + 0x58], eax
call ebp
mov eax, dword [esp + 0x38]
push edi
push eax
push esi
call ebp
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
push ecx
push edx
push esi
call ebp
mov eax, dword [esp + 0x40]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x44]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x58]
mov edi, dword [edx]
mov ecx, dword [edx + 4]
mov eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1b0]
add eax, 0xa74
mov eax, dword [eax]
dec eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
test ebx, ebx
jne 0x5545d7
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x55464f
mov dword [esp + 0x20], edi
mov edi, dword [0x613708]
mov dword [esp + 0x24], ecx
add ecx, 2
push edi
sub edx, ecx
push edx
push 1
mov dword [esp + 0x34], eax
inc eax
push ecx
push eax
push esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], 1
call fcn.0055e470
mov eax, dword [esp + 0x54]
add esp, 0x18
test eax, eax
jne 0x55463f
mov ecx, dword [0x61370c]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
inc edx
push edx
push esi
call fcn.0055e470
add esp, 0x18
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x1b0]
cmp dword [ebx + 0x71c], 3
mov ebp, dword [sym.imp.USER32.dll_FillRect]
jne 0x55484d
cmp dword [esp + 0x34], 0
mov dword [esp + 0x2c], edx
je 0x554686
add edi, 3
add ecx, 3
jmp 0x55468c
add edi, 2
add ecx, 2
add eax, 0xfffffffe
mov dword [esp + 0x28], eax
cmp dword [ebx + 0x720], 1
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
jne 0x55477e
mov eax, dword [ebx]
push eax
call fcn.0053d320
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x4c], edi
je 0x55484d
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
sub ecx, edx
test eax, eax
mov dword [esp + 0x44], ecx
fild dword [esp + 0x44]
fst qword [esp + 0x44]
je 0x5546e5
fadd qword [0x5e73e0]
mov eax, dword [edi + 0x360]
fild dword [edi + 0x360]
test eax, eax
jge 0x5546fb
fadd qword [0x5e73f0]
test eax, eax
fmulp st(1)
fmul qword [0x5e73e8]
jbe 0x55471c
fcom qword [0x5e73e0]
fnstsw ax
test ah, 5
jp 0x55471c
fstp st(0)
fld qword [0x5e73e0]
fcom qword [esp + 0x44]
fnstsw ax
test ah, 0x41
jne 0x55472d
fstp st(0)
fld qword [esp + 0x44]
fild dword [esp + 0x20]
fadd st(1)
call fcn.005cbd54
fstp st(0)
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x370]
test eax, eax
jl 0x55476b
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea edx, [esp + 0x24]
push edx
push esi
call ebp
mov eax, dword [edi + 0x360]
inc eax
mov dword [edi + 0x370], eax
jmp 0x55484d
push 2
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea ecx, [esp + 0x24]
push ecx
jmp 0x55484a
mov edx, dword [ebx]
push edx
call fcn.0049c910
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x38], edi
je 0x55484d
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
mov dword [esp + 0x44], eax
fild dword [esp + 0x44]
mov eax, dword [esp + 0x34]
test eax, eax
fst qword [esp + 0x44]
je 0x5547b9
fadd qword [0x5e73e0]
mov eax, dword [edi + 0x460]
fild dword [edi + 0x460]
test eax, eax
jge 0x5547cf
fadd qword [0x5e73f0]
test eax, eax
fmulp st(1)
fmul qword [0x5e73e8]
jbe 0x5547f0
fcom qword [0x5e73e0]
fnstsw ax
test ah, 5
jp 0x5547f0
fstp st(0)
fld qword [0x5e73e0]
fcom qword [esp + 0x44]
fnstsw ax
test ah, 0x41
jne 0x554801
fstp st(0)
fld qword [esp + 0x44]
fild dword [esp + 0x20]
fadd st(1)
call fcn.005cbd54
fstp st(0)
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x478]
test eax, eax
jl 0x55483c
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea ecx, [esp + 0x24]
push ecx
push esi
call ebp
mov edx, dword [edi + 0x460]
inc edx
mov dword [edi + 0x478], edx
jmp 0x55484d
push 2
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x24]
push eax
push esi
call ebp
xor edi, edi
mov dword [ebx + 0xa60], edi
cmp dword [0x614738], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x50], edi
jne 0x5548b8
cmp dword [esp + 0x34], edi
je 0x5548b8
cmp dword [esp + 0x3c], edi
jne 0x5548b8
push 0x5e86fc
push edi
push edi
push edi
push edi
push 1
push edi
push edi
push edi
push 0x2bc
push edi
push edi
push edi
push 0x48
push 0x5a
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
cmp eax, edi
mov dword [esp + 0x30], eax
je 0x5548b8
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x50], eax
cmp dword [ebx + 0x71c], edi
jne 0x5548ca
mov dword [ebx + 0xa60], 1
cmp dword [esp + 0x3c], edi
mov eax, dword [0x613718]
je 0x5548de
push edi
call fcn.0057c6c0
add esp, 4
cmp dword [ebx + 0x71c], edi
mov ebp, dword [ebx + 0x724]
jne 0x55499e
mov ecx, dword [ebx + 0xa64]
test ecx, ecx
jne 0x55499e
mov ecx, dword [0x64531c]
test ecx, ecx
je 0x55499e
lea esp, [esp]
mov edi, dword [ecx + 0x724]
test edi, edi
je 0x554990
cmp ecx, ebx
je 0x554990
mov edx, dword [ecx + 0xc00]
test edx, edx
jne 0x554990
mov edx, dword [ecx + 0xbf4]
cmp edx, dword [ebx + 0xbf4]
jne 0x554990
mov edx, dword [ecx + 0xa44]
test edx, edx
jne 0x554990
mov edx, dword [ecx + 0xbfc]
test edx, edx
jne 0x554990
mov edx, dword [ecx + 0xa6c]
test edx, edx
jne 0x554990
mov edx, dword [ecx + 0x71c]
dec edx
cmp edx, 8
ja case.0x554967.5
movzx edx, byte [edx + 0x554fe4]
jmp dword [edx*4 + 0x554fdc]
cmp edi, 3
jne 0x554977
test ebp, ebp
jne 0x554990
cmp edi, 2
jne 0x554980
cmp ebp, edi
je 0x554990
cmp edi, 1
jne case.0x554967.5
cmp ebp, edi
je 0x554990
cmp ebp, 2
je 0x554990
mov ebp, edi
mov ecx, dword [ecx + 0xe54]
test ecx, ecx
jne 0x554910
cmp ebp, 1
jne 0x554ab6
mov ecx, dword [0x60a100]
cmp ecx, ebp
jl 0x5549c7
cmp ecx, 0x10
jg 0x5549c7
dec ecx
push ecx
call fcn.0043bf80
mov eax, dword [eax*4 + 0x612870]
add esp, 4
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push esi
mov dword [esp + 0x48], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [esp + 0x54], eax
lea eax, [esp + 0xa8]
push 0x104
push eax
call fcn.00423a00
mov ecx, dword [esp + 0x1c0]
push ecx
lea edx, [esp + 0xb4]
push 0x104
push edx
call fcn.00423900
add esp, 0x14
push 6
push esi
call dword [sym.imp.GDI32.dll_GetCurrentObject]
mov edx, eax
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x6c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x6c]
push eax
push 0x3c
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x6c]
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x6c], eax
mov eax, dword [0x60a514]
xor edi, edi
test eax, eax
jne 0x554a5b
mov eax, dword [ebx + 0xa08]
test eax, eax
je 0x554b22
lea ecx, [esp + 0xa8]
push ecx
call fcn.0057ab30
add esp, 4
cmp eax, 2
jne 0x554b22
mov edx, dword [ebx + 0xa08]
movzx eax, byte [esp + 0x83]
mov ecx, dword [esp + 0x7c]
push 0
push 0
push edx
mov edx, dword [esp + 0x78]
push 6
push eax
push ecx
push edx
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0xc8]
push ecx
mov edi, 1
call fcn.00486bc0
add esp, 0x24
jmp 0x554b3b
cmp ebp, 2
jne 0x554aea
mov ecx, dword [0x60a104]
cmp ecx, 1
jl 0x5549c7
cmp ecx, 0x10
jg 0x5549c7
dec ecx
push ecx
call fcn.0043bf80
mov ecx, dword [eax*4 + 0x612870]
add esp, 4
push ecx
jmp 0x5549c8
cmp ebp, 3
jne 0x5549c7
mov ecx, dword [0x60a108]
cmp ecx, 1
jl 0x5549c7
cmp ecx, 0x10
jg 0x5549c7
dec ecx
push ecx
call fcn.0043bf80
mov edx, dword [eax*4 + 0x612870]
add esp, 4
push edx
jmp 0x5549c8
push 1
push 0
push 0
push 0xffffffffffffffff
lea edx, [esp + 0xb8]
push edx
push esi
call fcn.00522d60
add esp, 0x18
mov ecx, dword [esp + 0x14]
mov edx, eax
mov eax, dword [esp + 0x1c]
sub eax, edx
sub eax, ecx
inc eax
cdq
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x34]
sar edx, 1
add edx, eax
mov ebp, ecx
add ecx, edx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
lea edx, [ecx + eax + 0x15]
mov eax, dword [esp + 0x18]
movzx ecx, byte [esp + 0x83]
dec eax
push edi
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0xa08]
push eax
mov eax, dword [esp + 0x74]
push ecx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x88]
push edx
push eax
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0xc4]
push eax
push esi
call fcn.0057c780
add esp, 0x24
test eax, eax
je 0x554bbe
mov dword [ebx + 0xa60], 1
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x10]
jle 0x554c6e
test edi, edi
je 0x554c38
mov ecx, dword [ebx + 0xa08]
movzx eax, byte [esp + 0x83]
push 2
push ebx
push ecx
mov ecx, dword [esp + 0x88]
push 4
push 1
push 1
push 0
push eax
mov eax, dword [esp + 0x8c]
push ecx
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0xb0]
push ecx
mov ecx, dword [esp + 0x3c]
push 0
push 0
sub esp, 0x10
mov edi, esp
mov dword [edi], ecx
push eax
mov dword [edi + 4], eax
push ecx
lea eax, [esp + 0xf4]
mov dword [edi + 8], edx
mov edx, dword [esp + 0x68]
push eax
push esi
mov dword [edi + 0xc], edx
call fcn.00485c90
add esp, 0x54
jmp 0x554c6e
lea eax, [esp + 0xa8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x554c42
push 0
sub eax, edx
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xb0]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 4
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
mov edx, 0xffffffeb
sub edx, edi
add ecx, edx
test eax, eax
mov dword [esp + 0x10], ecx
je 0x554cab
mov eax, dword [esp + 0x50]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x554cbb
mov eax, dword [esp + 0x38]
test eax, eax
je 0x554cc7
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.USER32.dll_InvertRect]
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x613704]
sub eax, ebp
sub eax, 0x10
cdq
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
add eax, ebp
add eax, edi
test esi, esi
mov dword [esp + 0x14], eax
lea ebp, [eax + 1]
lea eax, [edx + edi + 2]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], eax
je case.default.0x554d3d
mov eax, dword [0x643550]
test eax, eax
jne 0x554d28
push 0x6436a0
push 0x64369c
push 0
call fcn.00553ba0
add esp, 0xc
test eax, eax
mov dword [0x643550], eax
je case.default.0x554d3d
mov ecx, dword [ebx + 0x71c]
cmp ecx, 0xd
mov eax, dword [ebx + 0x720]
ja case.default.0x554d3d
jmp dword [ecx*4 + 0x554ff0]
mov ecx, dword [ebx + 0xbf4]
push ecx
call fcn.00502d00
add esp, 4
test eax, eax
je 0x554d6f
mov edx, dword [ebx + 0xbf4]
mov eax, dword [edx + 0x1714]
test eax, eax
je 0x554d6b
push 0x1e
jmp 0x554ddc
push 0x1d
jmp 0x554ddc
mov eax, dword [ebx + 0xbf4]
push eax
call fcn.00502dc0
add esp, 4
test eax, eax
je 0x554d86
push 0x1c
jmp 0x554ddc
push 0x1b
jmp 0x554ddc
push 5
jmp 0x554ddc
cmp eax, 1
je 0x554da5
cmp eax, 2
je 0x554da5
cmp eax, 3
jne 0x554da1
push 0xa
jmp 0x554ddc
push 0xb
jmp 0x554ddc
push 6
jmp 0x554ddc
cmp eax, 1
jne 0x554db2
push 8
jmp 0x554ddc
push 9
jmp 0x554ddc
push 7
jmp 0x554ddc
push 0xc
jmp 0x554ddc
push 0xf
jmp 0x554ddc
push 0x11
jmp 0x554ddc
push 0xd
jmp 0x554ddc
push 0xe
jmp 0x554ddc
push 0x17
jmp 0x554ddc
push 0x18
jmp 0x554ddc
push 0x19
jmp 0x554ddc
push 0x1a
call fcn.00553b70
add esp, 4
mov edi, eax
imul edi, dword [0x64369c]
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x554edc
mov ecx, dword [0x643550]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x30]
mov ecx, dword [0x64369c]
push 0xff00ff
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
push edx
push esi
mov dword [esp + 0x5c], eax
mov eax, dword [0x6436a0]
push eax
push ecx
push 0
push edi
push ebx
call fcn.00486f30
mov eax, dword [0x610b68]
add esp, 0x2c
test eax, eax
je 0x554ec9
mov edx, dword [esp + 0x1b0]
push edx
call fcn.00427ba0
add esp, 4
test eax, eax
je 0x554ec9
mov eax, dword [esp + 0x38]
mov ecx, dword [0x6436a0]
mov edx, dword [0x64369c]
push 0
push 0x40
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push ebp
push eax
push esi
call fcn.00553950
add esp, 0x20
test eax, eax
jne 0x554ec9
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edx, dword [0x64369c]
mov edi, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x5c], eax
add eax, edx
push edi
mov dword [esp + 0x68], eax
mov eax, dword [0x6436a0]
lea ecx, [esp + 0x60]
mov dword [esp + 0x64], ebp
push ecx
add ebp, eax
push esi
mov dword [esp + 0x74], ebp
call dword [sym.imp.USER32.dll_FillRect]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x44]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ebx, dword [esp + 0x1b0]
mov eax, dword [esp + 0x54]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esp + 0x40]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [ebx + 0xa40]
test eax, eax
je 0x554fd1
mov edx, dword [esp + 0x58]
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov edi, dword [edx + 8]
cmp dword [0x60a118], 2
mov edx, dword [edx + 0xc]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
jl 0x554f75
sub eax, 6
lea edx, [eax + 1]
mov dword [esp + 0x1c], edx
mov edx, dword [0x613708]
push edx
push 1
push edi
push eax
push ecx
push esi
mov dword [esp + 0x2c], eax
call fcn.0055e470
mov eax, dword [esp + 0x54]
add esp, 0x18
test eax, eax
jne 0x554fd1
mov eax, dword [0x61370c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push 1
push ecx
inc edx
push edx
jmp 0x554fc7
cmp ecx, 0xf
jle 0x554fd1
sub ecx, 6
lea edi, [ecx + 1]
mov dword [esp + 0x18], edi
mov edi, dword [0x613708]
push edi
sub edx, eax
add edx, 2
push edx
push 1
push eax
push ecx
push esi
mov dword [esp + 0x28], ecx
call fcn.0055e470
mov eax, dword [esp + 0x54]
add esp, 0x18
test eax, eax
jne 0x554fd1
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [0x61370c]
sub edx, eax
push ecx
add edx, 2
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
inc eax
push eax
push esi
call fcn.0055e470
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x19c
ret