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

Disassembly:
push 0xffffffffffffffff
push 0x454783
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
mov eax, dword [esp + 0xdc]
push ebx
push ebp
push esi
mov ebp, dword [eax + 0x10]
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0xa0], ebp
xor ebx, ebx
push 1
push ebp
mov dword [esp + 0xe8], ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], ebx
push ecx
push ebp
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call dword [sym.imp.GDI32.dll_GetClipBox]
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x28]
push ebx
push ebx
push 0x1028
push eax
mov dword [esp + 0x48], edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 4]
push ebx
push ebx
push 0x1004
push ecx
mov edi, eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x24], edi
sub eax, edx
cmp edi, eax
jl 0x40dc71
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x20], edi
jle 0x40dfd6
mov eax, dword [esi + 4]
lea edx, [esp + 0x28]
push edx
push edi
push 0x100e
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x50]
push ecx
push edi
push 0x100e
push edx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x60], 2
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x40]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x94]
push ecx
push edx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x40dfc5
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 4]
add eax, edi
push 2
push eax
push 0x102c
push ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [str.lF_F]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0xa8]
mov dword [esp + 0xa4], ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0xe0], 1
mov dword [esp + 0xac], ebx
call fcn.0040ef70
mov esi, 0x100
lea ecx, [esp + 0x10]
push esi
mov dword [esp + 0xc0], esi
call fcn.0040f0e0
cmp eax, ebx
mov dword [esp + 0xb8], eax
je 0x40ddcc
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xa4]
push eax
mov eax, dword [edx + 4]
push ecx
push 0x1073
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esi - 1]
cmp eax, ecx
jl 0x40ddcc
add esi, esi
lea ecx, [esp + 0x10]
push esi
mov dword [esp + 0xc0], esi
call fcn.0040f0e0
cmp eax, ebx
mov dword [esp + 0xb8], eax
jne 0x40dd87
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00404030
mov esi, dword [esp + 0x1c]
and esi, 2
mov dword [esp + 0x14], esi
je 0x40ded5
xor edx, edx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x64], edx
lea eax, [esp + 0x60]
mov dword [esp + 0x68], edx
push eax
mov dword [esp + 0x70], edx
push 0x18
mov dword [esp + 0x78], edx
xor edi, edi
mov dword [esp + 0x7c], edx
mov edx, dword [ecx + 0x30]
push edx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x6c], ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp eax, ebx
je 0x40de33
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x64]
mov dword [esp + 0x8c], eax
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [ecx + 0x30]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1e], 0x80
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x8c]
push edx
mov ecx, dword [esp + 0x2c]
push eax
push edi
push ebx
push ebx
push esi
push eax
mov eax, dword [esp + 0x48]
push edi
push eax
push ecx
push ebp
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
mov edx, dword [esp + 0x3c]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push esi
call edi
cmp esi, ebx
je 0x40de99
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [esp + 0x14]
push ebx
push 0x460808
lea ecx, [esp + 0x18]
call fcn.0040f0a0
cmp eax, 0xffffffff
jne 0x40def1
push ebx
push 0x460800
lea ecx, [esp + 0x18]
call fcn.0040f0a0
cmp eax, 0xffffffff
jne 0x40def1
neg esi
sbb esi, esi
and esi, 0xb042
mov dword [esp + 0x14], esi
jmp 0x40def9
push ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.USER32.dll_FillRect]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x40de9d
mov dword [esp + 0x14], 0x999999
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x80], eax
mov al, byte [0x469bf8]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x34]
add edx, 2
test al, 1
mov dword [esp + 0x84], ecx
mov dword [esp + 0x78], edx
jne 0x40df55
mov dl, al
mov ecx, 0x469c00
or dl, 1
mov byte [0x469bf8], dl
call fcn.00436830
push 0x402df0
call fcn.0044055c
add esp, 4
mov eax, dword [0x469c04]
push eax
push ebp
call edi
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x78]
push 0x24
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
push ebp
call dword [sym.imp.USER32.dll_DrawTextW]
push esi
push ebp
call edi
mov eax, dword [esp + 0x10]
mov edx, dword [0x46005c]
mov byte [esp + 0xe0], bl
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40dfbd
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40dfbd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00439890
add esp, 4
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
inc edi
cmp edi, eax
mov dword [esp + 0x20], edi
jl 0x40dc83
mov ecx, dword [esp + 0xd8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0xd4
ret 8