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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [ebp - 4]
mov dword [ebp - 0x10], esi
call fcn.00404740
lea ecx, [ebp - 4]
call fcn.00405e50
or ebx, 0xffffffff
test al, al
jne 0x40f08f
mov byte [ebp + 0xb], al
jmp 0x40f598
call fcn.00405d20
mov ecx, eax
test ecx, ecx
je 0x40f5bb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
mov eax, str.SysColors
test eax, 0xffff0000
jne 0x40f0c3
movzx eax, ax
push eax
call fcn.00405e60
jmp 0x40f0cf
push 9
push str.SysColors
call fcn.00406f70
call fcn.00405d20
mov ecx, eax
test ecx, ecx
je 0x40f5bb
mov eax, dword [ecx]
push edi
call dword [eax + 0xc]
xor ebx, ebx
lea edi, [eax + 0x10]
lea eax, [esi + 0x104]
mov dword [ebp - 0xc], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 8], eax
push ebx
call fcn.00418680
add esp, 4
lea ecx, [ebp - 4]
push 0xffffffffffffffff
push eax
push esi
call fcn.004064f0
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x40f142
push ebx
lea eax, [ebp - 0xc]
push 0x4bbc20
push eax
call fcn.00405b90
mov edi, dword [ebp - 0xc]
lea ecx, [ebp - 4]
add esp, 0xc
push 0xffffffffffffffff
push edi
push esi
call fcn.004064f0
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
cmp eax, 0xffffffff
je 0x40f14f
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [ebp - 8]
mov dword [ecx - 0x7c], eax
add dword [ebp - 8], 4
inc ebx
cmp ebx, 0x1f
jb 0x40f0f8
push 7
push 0x4bc0e0
lea ecx, [ebp + 8]
call fcn.00406f70
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push 0
push str.Name
push esi
push eax
lea ecx, [ebp - 4]
call fcn.00406dc0
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.00404ff0
mov edx, dword [ebp - 0xc]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f1a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push str.Desc
push esi
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 4]
call fcn.00406dc0
push eax
lea ecx, [ebx + 4]
call fcn.00404ff0
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f1dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x4bc108
push esi
lea ecx, [ebp - 4]
call fcn.004064c0
push 5
mov byte [ebx + 0x181], al
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push str.BackColor
push esi
lea ecx, [ebp - 4]
call fcn.004064f0
push eax
mov dword [ebx + 0x78], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [ebx + 0x80]
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x40f22f
cmp ecx, eax
je 0x40f22f
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x10]
push 8
mov dword [ebx + 0x80], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push str.TextColor
push esi
lea ecx, [ebp - 4]
call fcn.004064f0
push eax
mov dword [ebx + 0x7c], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [ebx + 0x84]
mov esi, eax
test ecx, ecx
je 0x40f26d
cmp ecx, esi
je 0x40f26d
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 8
push str.ListView
lea ecx, [ebp + 8]
mov dword [ebx + 0x84], esi
call fcn.00406f70
push dword [ebx + 0x78]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
push str.BackColor
push esi
call fcn.004064f0
push dword [ebx + 0x7c]
lea ecx, [ebp - 4]
mov dword [ebx + 8], eax
push str.TextColor
push esi
call fcn.004064f0
push 0xffffffffffffffff
push str.SelectedColor
push esi
lea ecx, [ebp - 4]
mov dword [ebx + 0xc], eax
call fcn.004064f0
push dword [ebx + 0x78]
lea ecx, [ebp - 4]
mov dword [ebx + 0x10], eax
push str.TextBackColor
push esi
call fcn.004064f0
push 1
push str.ShowFocusRect
push esi
lea ecx, [ebp - 4]
mov dword [ebx + 0x14], eax
call fcn.004064c0
push 8
push str.TreeView
lea ecx, [ebp + 8]
mov byte [ebx + 0x18], al
call fcn.00406f70
push dword [ebx + 0x78]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
push str.BackColor
push esi
call fcn.004064f0
push dword [ebx + 0x7c]
lea ecx, [ebp - 4]
mov dword [ebx + 0x1c], eax
push str.TextColor
push esi
call fcn.004064f0
push dword [ebx + 0x7c]
lea ecx, [ebp - 4]
mov dword [ebx + 0x20], eax
push str.LineColor
push esi
call fcn.004064f0
push 6
push str.Header
lea ecx, [ebp + 8]
mov dword [ebx + 0x24], eax
call fcn.00406f70
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
push 0xffffffffffffffff
push str.BackColor
push esi
call fcn.004064f0
push 0xffffffffffffffff
push str.TextColor
push esi
lea ecx, [ebp - 4]
mov dword [ebx + 0x28], eax
call fcn.004064f0
push 0xffffffffffffffff
push str.SortDrawColor
push esi
lea ecx, [ebp - 4]
mov dword [ebx + 0x2c], eax
call fcn.004064f0
push 4
push 0x4bc1f8
lea ecx, [ebp + 8]
mov dword [ebx + 0x30], eax
call fcn.00406f70
push dword [ebx + 0x78]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
push str.BackColor
push esi
call fcn.004064f0
push dword [ebx + 0x7c]
lea ecx, [ebp - 4]
mov dword [ebx + 0x44], eax
push str.TextColor
push esi
call fcn.004064f0
push 6
push 0x4bc204
lea ecx, [ebp + 8]
mov dword [ebx + 0x48], eax
call fcn.00406f70
push dword [ebx + 0x78]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
push str.BackColor
push esi
call fcn.004064f0
push dword [ebx + 0x7c]
lea ecx, [ebp - 4]
mov dword [ebx + 0x54], eax
push str.TextColor
push esi
call fcn.004064f0
push 9
push str.StatusBar
lea ecx, [ebp + 8]
mov dword [ebx + 0x58], eax
call fcn.00406f70
push dword [ebx + 0x78]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
push str.BackColor
push esi
call fcn.004064f0
push dword [ebx + 0x7c]
lea ecx, [ebp - 4]
mov dword [ebx + 0x5c], eax
push str.TextColor
push esi
call fcn.004064f0
push 7
push str.ToolBar
lea ecx, [ebp + 8]
mov dword [ebx + 0x60], eax
call fcn.00406f70
push 0x800000
push str.PressedColor
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.004064f0
push 6
push str.Button
lea ecx, [ebp + 8]
mov dword [ebx + 0x34], eax
call fcn.00406f70
push dword [ebx + 0x78]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
push str.BackColor
push esi
call fcn.004064f0
push dword [ebx + 0x7c]
lea ecx, [ebp - 4]
mov dword [ebx + 0x4c], eax
push str.TextColor
push esi
call fcn.004064f0
push 9
mov dword [ebx + 0x50], eax
push str.ScrollBar
lea ecx, [ebp + 8]
call fcn.00406f70
push dword [ebx + 0x78]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
push str.BackColor
push esi
call fcn.004064f0
push 0x808080
push str.ArrowHeadColor
push esi
lea ecx, [ebp - 4]
mov dword [ebx + 0x6c], eax
call fcn.004064f0
push 0x404040
push str.ArrowBoxColor
push esi
lea ecx, [ebp - 4]
mov dword [ebx + 0x68], eax
call fcn.004064f0
push 0xc0c0c0
push str.ThumbColor
push esi
lea ecx, [ebp - 4]
mov dword [ebx + 0x64], eax
call fcn.004064f0
push 0
push str.Frame
push esi
lea ecx, [ebp - 4]
mov dword [ebx + 0x70], eax
call fcn.004064c0
push 8
push str.TitleBar
lea ecx, [ebp + 8]
mov byte [ebx + 0x74], al
call fcn.00406f70
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
push 0
push str.Customize
push esi
call fcn.004064c0
push 0xa0a0a
push str.ActiveCaptionColor
push esi
lea ecx, [ebp - 4]
mov byte [ebx + 0x40], al
call fcn.004064f0
push 0x232425
push str.InactiveCaptionColor
push esi
lea ecx, [ebp - 4]
mov dword [ebx + 0x38], eax
call fcn.004064f0
mov dword [ebx + 0x3c], eax
add edi, 0xfffffff0
mov byte [ebx + 0x180], 0
or ebx, 0xffffffff
mov byte [ebp + 0xb], 1
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40f580
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
pop edi
test eax, eax
jg 0x40f598
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
pop esi
test ebx, ebx
pop ebx
jg 0x40f5b2
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp + 0xb]
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004059f0
int3