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

Disassembly:
sub esp, 0xc4
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xdc]
mov eax, 0x50
mov word [esp + 0x4a], ax
mov word [esp + 0x4e], ax
mov eax, dword [esp + 0xd8]
mov ecx, 0xa0
push edi
push eax
mov word [esp + 0x50], cx
mov word [esp + 0x54], cx
call fcn.00403420
mov esi, dword [esp + 0xe8]
add esp, 8
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
lea ecx, [esp + 0x94]
push ecx
mov ebx, eax
push edi
mov dword [esp + 0x60], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.00403460
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov ebp, dword [esp + 0x70]
add esp, 0xc
sub edx, ecx
push edx
sub eax, ebp
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
mov dword [esp + 0x64], eax
call dword [sym.imp.GDI32.dll_SelectObject]
xor edi, edi
xor ebx, ebx
lea ebp, [esp + ebx + 0xa4]
mov ecx, ebp
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x48]
push ecx
push 1
push 1
push 4
push 4
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
mov dword [esp + 0x54], eax
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
cmp edi, 2
setne dl
dec dl
mov dword [esp + 0x24], eax
xor eax, eax
and edx, 0xff
cmp edi, 1
setne cl
mov ah, dl
dec cl
and ecx, 0xff
mov al, cl
shl eax, 8
test edi, edi
setne dl
dec dl
and edx, 0xff
movzx ecx, dl
or eax, ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + ebx + 0x68]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.USER32.dll_FillRect]
mov edx, ebp
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [edx + 0xc]
mov edx, dword [esp + ebx + 0x70]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_FillRect]
push 0x808080
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push ebp
push esi
mov dword [esp + 0x6c], eax
call dword [sym.imp.USER32.dll_FrameRect]
mov edx, dword [esp + 0x60]
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
push edx
call ebp
mov eax, dword [esp + 0x24]
push eax
call ebp
mov ecx, dword [esp + 0x50]
push ecx
call ebp
add ebx, 0x10
inc edi
cmp ebx, 0x30
jl 0x405a01
mov eax, dword [esp + 0x20]
lea edx, [eax + eax*2 + 0x71]
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x20], edx
jmp 0x405b30
xor ebp, ebp
lea esp, [esp]
mov edx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
xor ecx, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xd8]
add edx, edi
mov eax, dword [eax + edx*4]
mov dword [esp + 0x38], ecx
mov ebx, edi
shl ebx, 4
mov edx, dword [esp + ebx + 0x64]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
sub eax, 0x2c
cmp edi, ebp
mov dword [esp + 0x28], edx
mov edx, dword [esp + ebx + 0x68]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], 1
lea ecx, [eax + 0x58]
mov dword [esp + 0x2c], edx
jne 0x405ba9
xor edx, edx
mov dh, al
mov word [esp + 0x30], dx
cmp edi, 2
mov word [esp + 0x32], bp
jne 0x405bbc
xor edx, edx
mov dh, al
mov word [esp + 0x34], dx
jmp 0x405bc1
cmp edi, 1
mov word [esp + 0x30], bp
jne 0x405b94
xor edx, edx
mov dh, al
mov word [esp + 0x32], dx
mov word [esp + 0x34], bp
cmp edi, ebp
mov eax, dword [esp + ebx + 0x6c]
mov edx, dword [esp + ebx + 0x70]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
jne 0x405bf3
xor eax, eax
mov ah, cl
mov word [esp + 0x40], ax
cmp edi, 2
mov word [esp + 0x42], bp
jne 0x405c06
xor eax, eax
mov ah, cl
mov word [esp + 0x44], ax
jmp 0x405c0b
cmp edi, 1
mov word [esp + 0x40], bp
jne 0x405bde
xor edx, edx
mov dh, cl
mov word [esp + 0x42], dx
mov word [esp + 0x44], bp
push ebp
push 1
lea ecx, [esp + 0x58]
push ecx
push 2
lea edx, [esp + 0x38]
push edx
push esi
call dword [sym.imp.MSIMG32.dll_GradientFill]
lea eax, [esp + ebx + 0xa4]
mov edx, eax
mov ecx, dword [edx]
mov ebx, dword [edx + 4]
mov eax, dword [edx + 8]
mov ebp, dword [edx + 0xc]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
lea ecx, [ecx + eax - 0x1e]
mov dword [esp + 0x10], ecx
add ecx, 0x3c
sub ebx, 2
add ebp, 2
push 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebp
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_FrameRect]
inc edi
cmp edi, 3
jl 0x405b27
mov ecx, dword [esp + 0x5c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x58]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc4
ret