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

Disassembly:
push 0xffffffffffffffff
push 0x41e658
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42afb8]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x74]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x44], eax
mov eax, esi
sub eax, ecx
sub eax, 0x10
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x78]
lea edx, [eax + 8]
sar ebx, 1
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x7c]
add ebx, ecx
test byte [esp + 0x84], 1
lea ebp, [eax + edx - 1]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x70]
lea eax, [eax + edx + 6]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], esi
je 0x4079fc
push 0xac0000
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0xffffff
jmp 0x407a1e
push 0xffffff
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edx, dword [edi + 0x20]
sub edx, 1
neg edx
sbb edx, edx
and edx, 0xff535354
add edx, 0xacacac
push edx
mov esi, dword [esp + 0x68]
push esi
mov ebp, eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [esp + 0x78], eax
push ebp
lea eax, [esp + 0x6c]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x1c]
mov ebp, dword [edi + 0x18]
mov dword [esp + 0x18], edx
mov edx, dword [0x434350]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x434350
mov dword [esp + 0x1c], ebp
call eax
add eax, 0x10
mov dword [esp + 0x64], eax
lea ecx, [ebp - 1]
cmp cx, 0xa
mov dword [esp + 0x5c], 0
ja 0x407aaf
movzx edx, word [esp + 0x1e]
movzx ecx, word [esp + 0x1a]
push edx
movzx edx, word [esp + 0x1a]
movzx eax, bp
push eax
movzx eax, word [esp + 0x1c]
push ecx
push edx
push eax
push str._d__02d__02d__02d:_02d_AM
lea ecx, [esp + 0x7c]
push ecx
jmp 0x407b04
test bp, bp
movzx eax, word [esp + 0x1a]
jne 0x407ae0
movzx edx, word [esp + 0x1e]
movzx ecx, word [esp + 0x16]
push edx
movzx edx, word [esp + 0x18]
push eax
push ecx
push edx
lea eax, [esp + 0x74]
push str._d__02d__02d_12:_02d_AM
push eax
call fcn.00402bb0
add esp, 0x18
jmp 0x407b0c
movzx ecx, word [esp + 0x1e]
push ecx
movzx ecx, word [esp + 0x1a]
movzx edx, bp
sub edx, 0xc
push edx
movzx edx, word [esp + 0x1c]
push eax
push ecx
push edx
push str._d__02d__02d__02d:_02d_PM
lea eax, [esp + 0x7c]
push eax
call fcn.00402bb0
add esp, 0x1c
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx - 0xc]
mov ebp, dword [sym.imp.USER32.dll_DrawTextA]
push 4
lea edx, [esp + 0x28]
push edx
push eax
push ecx
push esi
call ebp
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
push 4
lea edx, [esp + 0x38]
push edx
push ecx
push eax
push esi
call ebp
mov eax, dword [esp + 0x78]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [edi + 0x24], 1
jne 0x407b94
mov ecx, dword [0x42b0c4]
push 0x6d
push ecx
call dword [sym.imp.USER32.dll_LoadBitmapA]
push esi
mov ebp, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
push ebp
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x44]
push 0
push 0x10
push 0x10
push 0
push 0
push edi
push 0x10
push 0x10
push ebx
push edx
push esi
call dword [sym.imp.MSIMG32.dll_TransparentBlt]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407bbc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x24