Function at 0x4016a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45b1b8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x46e320]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov edi, dword [ebp + 8]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0xc]
push edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
call dword [sym.imp.GDI32.dll_SaveDC]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
push eax
mov dword [esp + 0x54], 0
mov edx, dword [ebx]
mov edx, dword [edx + 0x14]
push esi
push edi
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x1c]
push ecx
push edi
mov ecx, ebx
call edx
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
add edx, eax
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x20]
add edx, ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x3c]
sub ecx, eax
sub edx, eax
cmp ecx, edx
mov dword [esp + 0x24], eax
jge 0x401784
mov edx, dword [esp + 0x3c]
add eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
mov eax, ecx
cdq
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x10]
sar edx, 1
sub eax, edx
add ecx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
sub ecx, eax
sub edx, eax
cmp ecx, edx
mov dword [esp + 0x10], ecx
jge 0x4017c2
mov ecx, dword [esp + 0x40]
add eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x10]
cdq
sub eax, edx
mov edx, dword [esp + 0x10]
sar ecx, 1
sar eax, 1
sub ecx, eax
add edx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
push edi
call dword [sym.imp.GDI32.dll_IntersectClipRect]
cmp dword [ebp + 0x10], 0
je 0x40187f
push 0x8d5d31
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esi + 4]
mov ecx, dword [esi]
push 0xffffffffffffffff
mov dword [esp + 0x3c], edx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0xc]
push 0xffffffffffffffff
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
call dword [sym.imp.USER32.dll_InflateRect]
test edi, edi
je 0x401844
push 0xfcf5e9
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
push 0
lea eax, [esp + 0x40]
push eax
push 2
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
cmp dword [ebx + 0x104], 8
mov eax, dword [ebx + 0x100]
jb 0x40185b
mov ebx, dword [ebx + 0xf0]
jmp 0x401861
add ebx, 0xf0
push 0
lea ecx, [esp + 0x28]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [esp + 0x14]
push edx
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
jmp 0x4018c6
mov esi, dword [sym.imp.GDI32.dll_SetTextColor]
push 0x10101
push edi
call esi
cmp dword [ebx + 0x104], 8
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x100]
jb 0x4018a8
mov ebx, dword [ebx + 0xf0]
jmp 0x4018ae
add ebx, 0xf0
push 0
lea ecx, [esp + 0x28]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [esp + 0x14]
push edx
push edi
call esi
mov eax, dword [esp + 0x18]
push eax
push edi
call dword [sym.imp.GDI32.dll_RestoreDC]
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc