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

Disassembly:
sub esp, 0x728
push ebx
mov ebx, dword [esp + 0x730]
push ebp
push esi
mov esi, dword [esp + 0x73c]
push edi
xor eax, eax
push esi
push ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], eax
call fcn.00403420
mov ebp, eax
xor eax, eax
add esp, 8
mov ecx, 0xc
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x64]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x110]
push eax
push 0
push 0x104b
push ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x120], 4
mov dword [esp + 0x140], ebp
call edi
test eax, eax
je 0x404ea9
mov edx, dword [esp + 0x130]
mov eax, dword [ebx + 0x64]
push 0xf000
push edx
push 0x102c
push eax
call edi
shr eax, 0xc
dec eax
neg eax
sbb eax, eax
neg eax
mov dword [esp + 0x1c], eax
imul ebp, ebp, 0x90c
mov eax, dword [ebx + ebp + 0x8f4]
xor ecx, ecx
cmp eax, 0x2000
sete cl
cmp eax, 0x2001
mov edi, ecx
jne 0x404ece
mov edi, 1
lea edx, [esp + 0x54]
push edx
push esi
call dword [sym.imp.USER32.dll_BeginPaint]
mov ebp, eax
test ebp, ebp
je 0x40572a
mov eax, dword [esp + 0x2c]
push eax
push ebx
call fcn.004033d0
add esp, 8
test eax, eax
je 0x405662
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x404f0a
test edi, edi
je 0x405662
lea ecx, [esp + 0x40]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 2
push 2
mov ebx, eax
push ebp
mov dword [esp + 0x40], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov edi, eax
mov eax, dword [esp + 0x68]
sub eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x64]
push edi
sub eax, ecx
push ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [sym.imp.GDI32.dll_SetPixel]
push 0xffffff
push 0
push 1
push ebx
call esi
push 0xffffff
push 1
push 0
push ebx
call esi
push 0
push 1
push 1
push ebx
call esi
push 0
push 0
push 0
push ebx
call esi
push edi
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push eax
push ebp
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x5c]
push 0xf00021
push 0
push 0
push ebp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x70]
sub edx, eax
push edx
mov edx, dword [esp + 0x78]
sub edx, ecx
push edx
push eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x404fd7
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0xffffff
push 0
push 0
push ebx
call esi
push 0xffffff
push 1
push 0
push ebx
call esi
push 0
push 1
push 1
push ebx
call esi
push 0
push 0
push 1
push ebx
call esi
push edi
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
mov edi, eax
push edi
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
sub ecx, edx
mov eax, 0x66666667
imul ecx
mov ecx, dword [esp + 0x64]
push 0xf00021
push 0
sar edx, 2
push 0
mov eax, edx
push ebp
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x70]
sub ecx, eax
push ecx
push edx
push eax
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x60]
mov edx, ecx
sub edx, eax
mov eax, 0x66666667
imul edx
push 0xf00021
sar edx, 2
push 0
mov eax, edx
push 0
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x70]
sub edx, dword [esp + 0x68]
push ebp
push eax
push edx
sub ecx, eax
mov eax, dword [esp + 0x74]
push ecx
push eax
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
test edi, edi
je 0x40509b
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x24]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
mov eax, 0x99999999
imul ecx
sar edx, 2
mov eax, edx
xor edi, edi
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
jmp 0x4050f0
mov edi, dword [esp + 0x10]
lea ebx, [ebx]
cmp edi, 2
jne 0x4050fc
mov edi, 0xff0000
jmp 0x40510d
dec edi
neg edi
sbb edi, edi
and edi, 0xffff01ff
add edi, 0xff00
push edi
push 0
push 0
push ebx
call esi
push edi
push 1
push 0
push ebx
call esi
push 0
push 1
push 1
push ebx
call esi
push 0
push 0
push 1
push ebx
call esi
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
mov edi, eax
push edi
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
push 0xf00021
push 0
push 0
push ebp
push ecx
imul ecx, dword [esp + 0x24]
sub edx, eax
push edx
add ecx, dword [esp + 0x30]
add ecx, dword [esp + 0x78]
push ecx
push eax
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x64]
push 0xf00021
push 0
push 0
inc ecx
push ebp
mov dword [esp + 0x20], ecx
imul ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x70]
sub edx, eax
push edx
mov edx, dword [esp + 0x34]
sub edx, ecx
add edx, dword [esp + 0x80]
push edx
push eax
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
test edi, edi
je 0x4051bd
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x10]
cmp eax, 3
mov dword [esp + 0x10], eax
jb 0x4050e6
mov eax, dword [esp + 0x24]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x1c], eax
mov eax, 0x66666667
imul dword [esp + 0x20]
sar edx, 3
mov ebx, edx
shr ebx, 0x1f
mov dword [esp + 0x10], 0
add ebx, edx
lea ebx, [ebx]
mov eax, dword [esp + 0x10]
xor edi, edi
and eax, 1
mov dword [esp + 0x18], eax
lea ecx, [ecx]
cmp edi, 1
jne 0x40521c
mov eax, 0xffffff
jmp 0x405242
cmp edi, 2
jne 0x405228
mov eax, 0xff
jmp 0x405242
cmp edi, 3
jne 0x405234
mov eax, 0xff00
jmp 0x405242
xor eax, eax
cmp edi, 4
setne al
dec eax
and eax, 0xff0000
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
push esi
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x405270
mov ecx, dword [esp + 0x20]
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
sub ecx, eax
sub ecx, ebx
jmp 0x405272
mov ecx, ebx
cmp dword [esp + 0x10], 1
jbe 0x405292
mov eax, dword [esp + 0x24]
cdq
and edx, 3
add edx, eax
mov eax, dword [esp + 0x24]
sar edx, 2
sub eax, edx
sub eax, dword [esp + 0x14]
jmp 0x405296
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push 0xf00021
push 0
push 0
push ebp
push edx
push ebx
push eax
mov eax, ebx
imul eax, edi
add eax, ecx
push eax
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
test esi, esi
je 0x4052c1
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
inc edi
cmp edi, 5
jb 0x405210
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 4
mov dword [esp + 0x10], eax
jb 0x405200
mov esi, dword [esp + 0x24]
mov eax, 0x51eb851f
imul esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x30], eax
mov eax, esi
mov esi, dword [esp + 0x20]
cdq
sub eax, edx
mov ebx, eax
mov eax, esi
cdq
and edx, 0x3f
add eax, edx
mov edi, eax
mov eax, esi
cdq
and edx, 3
add eax, edx
xor ecx, ecx
sar ebx, 1
mov esi, eax
sar edi, 6
sar esi, 2
mov dword [esp + 0x10], ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x18], esi
jmp 0x405340
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
lea esp, [esp]
mov edx, dword [esp + 0x14]
imul edx, ecx
xor eax, eax
add edx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edx
jmp 0x405360
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
lea ecx, [ecx]
shl al, 3
cmp ecx, 1
jne 0x40536d
movzx eax, al
jmp 0x405396
cmp ecx, 2
jne 0x40537a
xor ecx, ecx
mov ch, al
mov eax, ecx
jmp 0x405396
cmp ecx, 3
jne 0x405387
movzx eax, al
shl eax, 0x10
jmp 0x405396
movzx ecx, al
mov eax, ecx
shl eax, 8
or eax, ecx
shl eax, 8
or eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebx, eax
push ebx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
push 0xf00021
push 0
push 0
push ebp
push edx
push edi
push eax
push esi
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
test ebx, ebx
je 0x4053cf
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x20]
inc eax
add esi, edi
cmp eax, 0x20
mov dword [esp + 0x20], eax
jb 0x405355
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 4
mov dword [esp + 0x10], eax
jb 0x40532d
mov edx, dword [esp + 0x740]
lea ecx, [esp + 0xa4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0xac]
sub eax, dword [esp + 0xa4]
cmp eax, 0x500
mov dword [esp + 0x14], 0xc
jle 0x405432
mov dword [esp + 0x14], 0x18
jmp 0x405441
cmp eax, 0x320
jle 0x405441
mov dword [esp + 0x14], 0x10
xor eax, eax
push eax
mov ecx, 0x7c
lea edi, [esp + 0x14c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x148]
push eax
push 0
push 0x29
mov dword [esp + 0x154], 0x1f4
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, 0x17
lea esi, [esp + 0x2dc]
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
push 0x41761c
lea ecx, [esp + 0xd4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x48
push 0x5a
push ebp
mov dword [esp + 0xd0], 0x2bc
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edx, dword [esp + 0x18]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [esp + 0xb4], eax
lea eax, [esp + 0xb4]
push eax
mov byte [esp + 0xcc], 0
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov edi, eax
test edi, edi
jne 0x405532
push 0x48
push 0x5a
mov ecx, 0x17
lea esi, [esp + 0x2e4]
lea edi, [esp + 0xbc]
rep movsd dword es:[edi], dword [esi]
push ebp
mov dword [esp + 0xd0], 0x2bc
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
lea edx, [esp + 0xb4]
neg eax
push edx
mov dword [esp + 0xb8], eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov edi, eax
test edi, edi
je 0x40553e
push edi
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x3c], eax
push 0xc8
lea eax, [esp + 0x33c]
push eax
push 0x8c0b
push 0
call fcn.00406bd0
add esp, 0x10
push 1
push ebp
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push ebp
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, 0x2e8ba2e9
imul esi
mov ecx, dword [esp + 0x18]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, dword [esp + 0x1c]
mov dword [esp + 0x98], eax
lea esi, [esi + esi*2]
mov eax, 0x66666667
imul esi
sar edx, 2
mov dword [esp + 0x94], ecx
lea ecx, [ecx + ecx*2]
mov eax, edx
shr eax, 0x1f
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x1c]
add eax, edx
push 0x10
add eax, ecx
lea ecx, [esp + 0x98]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x344]
push edx
push ebp
mov dword [esp + 0xb4], eax
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x28]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x30]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esp + 0x38]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push ebp
call esi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x405616
push eax
push ebp
call esi
test edi, edi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x405623
push edi
call esi
test ebx, ebx
je 0x40562a
push ebx
call esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x405635
push eax
call esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x405644
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x740]
lea eax, [esp + 0x54]
push eax
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x728
ret
mov edi, dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push ebp
call edi
mov edx, dword [ebx + 0x68]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push ebp
mov dword [esp + 0x3c], eax
call ebx
push 0xffffff
push ebp
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
lea eax, [ecx + eax - 0x32]
add dword [esp + 0x40], 0x32
push 0x200
lea ecx, [esp + 0x33c]
push ecx
mov dword [esp + 0x4c], eax
add eax, 0x64
push 0x8c0b
push 0
mov dword [esp + 0x5c], eax
call fcn.00406bd0
add esp, 0x10
push 0x10
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x340]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea ecx, [esp + 0x344]
push ecx
push ebp
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [esp + 0x34]
push edx
push ebp
call edi
mov eax, dword [esp + 0x38]
push eax
push ebp
call ebx
mov ecx, dword [esp + 0x28]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
lea edx, [esp + 0x54]
push edx
push esi
call dword [sym.imp.USER32.dll_EndPaint]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x728
ret