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

Disassembly:
sub esp, 0xc4
mov eax, dword [0x445030]
xor eax, esp
mov dword [esp + 0xbc], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 4]
lea eax, [esp + 0x88]
push eax
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
mov ebx, eax
xor ebp, ebp
cmp ebx, ebp
jne 0x40ec5b
xor eax, eax
jmp 0x40f146
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esi + 0x54]
mov edi, eax
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 4]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x78]
push eax
push ecx
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi + 4]
xor eax, eax
push ebp
push ebp
push 0x130b
push edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x64], 8
call dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push ebp
mov dword [esp + 0x34], eax
mov eax, dword [esi + 4]
push 0x1304
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 6
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebp, eax
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], eax
test eax, eax
jle 0x40f017
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
push 0x130a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 4]
lea ecx, [esp + 0x54]
push ecx
push edx
push 0x133c
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40ede6
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x24], ecx
je 0x40ede6
mov edx, dword [esi + 0x54]
add dword [esp + 0x18], 2
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push 0xcc0020
push 0x19
push 6
push 0
push 0
push edi
sub ecx, eax
add ecx, ebp
push ecx
push 6
push eax
push edx
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0xcc0020
push 0x19
push 3
push 0
push 3
push edi
sub ecx, eax
add ecx, ebp
push ecx
mov ecx, dword [esp + 0x30]
sub edx, ecx
sub edx, 0xc
push edx
push eax
add ecx, 6
push ecx
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esi + 0x58]
jmp 0x40ee8b
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x38]
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x1c]
add eax, 0xffffffe9
mov dword [esi + 0x2c], eax
add eax, 0x15
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x44], ecx
mov ecx, dword [esi + 0x5c]
add eax, 6
mov dword [esi + 0x30], eax
push ecx
add eax, 0x10
push edi
mov dword [esi + 0x40], edx
mov dword [esi + 0x38], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push 0xcc0020
push 0x19
push 6
push 0
push 0
push edi
sub edx, eax
add edx, ebp
push edx
push 6
push eax
mov eax, dword [esp + 0x38]
push eax
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0xcc0020
push 0x19
push 3
push 0
push 3
push edi
sub ecx, eax
add ecx, ebp
push ecx
mov ecx, dword [esp + 0x30]
sub edx, ecx
sub edx, 0xc
push edx
push eax
add ecx, 6
push ecx
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esi + 0x60]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0xcc0020
push 0x19
push 6
push 0
push 3
push edi
sub ecx, eax
add ecx, ebp
push ecx
push 6
push eax
add edx, 0xfffffffa
push edx
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
cmp dword [esi + 0x68], 0
je 0x40ef7c
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 4]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x38]
push eax
push ecx
push 0x133c
push edx
mov dword [esp + 0x48], 2
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esi + 0x84]
push 0
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
mov dword [esp + 0x28], eax
test eax, eax
je 0x40ef57
cmp dword [esp + 0x4c], 0xffffffff
je 0x40ef57
mov edx, dword [esp + 0x18]
push 3
push 0
push 0
push 0x10
push 0x10
push eax
mov eax, dword [esp + 0x2c]
add edx, 6
push edx
add eax, 4
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawIconEx]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x40ef7c
mov edx, dword [esi + 0x68]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 3
push 0
push 0
push 0x10
push 0x10
push edx
add eax, 6
push eax
add ecx, 4
push ecx
push ebx
call dword [sym.imp.USER32.dll_DrawIconEx]
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x24], edx
jne 0x40ef90
mov eax, dword [esi + 0x64]
push ebx
push eax
call fcn.0040f340
mov ecx, dword [esp + 0x70]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
test eax, eax
jne 0x40f004
add dword [esp + 0x14], 0x14
sub dword [esp + 0x1c], 0x15
add dword [esp + 0x18], 3
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esi + 0x4c]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x70]
add dword [esp + 0x14], 2
mov eax, ecx
lea edx, [eax + 2]
mov dword [esp + 0x28], edx
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40efe0
sub eax, dword [esp + 0x28]
push 0x40024
lea edx, [esp + 0x18]
push edx
sar eax, 1
push eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x24]
inc eax
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x24], eax
jl 0x40ed2b
mov eax, dword [esi + 4]
push 0
push 0
push 0x1304
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x14]
push ecx
dec eax
push eax
push 0x130a
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [eax + 0x1e]
add ecx, 2
mov dword [esi + 0x70], eax
add eax, 0x14
mov dword [esp + 0x18], ecx
mov dword [esi + 0x78], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x74], ecx
mov ecx, dword [esi + 0x54]
push ecx
add eax, 0xfffffffe
push edi
mov dword [esp + 0x24], edx
mov dword [esi + 0x7c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push 0xcc0020
push 0x19
push 6
push 0
push 0
push edi
sub edx, eax
add edx, ebp
push edx
push 6
push eax
mov eax, dword [esp + 0x38]
push eax
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0xcc0020
push 0x19
push 3
push 0
push 3
push edi
sub ecx, eax
add ecx, ebp
push ecx
mov ecx, dword [esp + 0x30]
sub edx, ecx
sub edx, 0xc
push edx
push eax
add ecx, 6
push ecx
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esi + 0x58]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push 0xcc0020
push 0x19
push 6
push 0
push 3
push edi
mov edx, dword [esp + 0x34]
sub ecx, eax
add ecx, ebp
push ecx
push 6
push eax
add edx, 0xfffffffa
push edx
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x30]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
call edi
mov edx, dword [esi + 4]
lea ecx, [esp + 0x88]
push ecx
push edx
call dword [sym.imp.USER32.dll_EndPaint]
push ebx
call edi
mov eax, 1
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041b3f1
add esp, 0xc4
ret