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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x58450c
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x5e9750]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x5e9750]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x30], eax
mov eax, dword [esi + 4]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov edx, dword [eax + 0x20]
push ecx
push edx
mov dword [esp + 0x34], esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, vtable.CRgn.0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edi
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x294], ebx
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x18]
call fcn.00454abe
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edi
push ebx
push ebx
push ebx
push ebx
mov byte [esp + 0x2a0], 1
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x20]
call fcn.00454abe
mov eax, dword [esi + 4]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov ecx, dword [eax + 0x20]
push 5
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
push eax
call fcn.0044a19b
mov ecx, dword [esp + 0x30]
mov edi, eax
cmp ecx, ebx
je 0x40c923
push ebx
call fcn.0045449c
cmp edi, ebx
je 0x40cb88
jmp 0x40c930
mov eax, dword [edi + 0x20]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x3c]
push edx
call fcn.00454527
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetRectRgn]
mov eax, dword [edi + 0x20]
push 0x104
lea edx, [esp + 0x78]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
mov ecx, edi
call fcn.0044dc8e
test eax, 0x10000000
je 0x40cb68
mov edx, str.Button
lea ecx, [esp + 0x74]
lea ebx, [ebx]
mov si, word [ecx]
cmp si, word [edx]
jne 0x40c9c6
cmp si, bx
je 0x40c9c2
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x40c9c6
add ecx, 4
add edx, 4
cmp si, bx
jne 0x40c9a0
xor ecx, ecx
jmp 0x40c9cb
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
jne 0x40c9da
and eax, 7
cmp al, 7
je 0x40cb68
mov ecx, str.SysTabControl32
lea eax, [esp + 0x74]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40ca09
cmp dx, bx
je 0x40ca05
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40ca09
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40c9e3
xor eax, eax
jmp 0x40ca0e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40ca96
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x3c]
push eax
push ebx
push 0x1328
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], vtable.CRgn.0
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x294], 2
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x28]
call fcn.00454abe
mov eax, dword [esp + 0x28]
mov esi, dword [sym.imp.GDI32.dll_CombineRgn]
push 4
push eax
mov eax, dword [esp + 0x28]
push eax
push eax
call esi
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push 4
push ecx
push eax
push eax
call esi
mov byte [esp + 0x290], 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], vtable.CRgn.0
call fcn.00410510
jmp 0x40cb68
mov ecx, str.msctls_statusbar32
lea eax, [esp + 0x74]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40cac6
cmp dx, bx
je 0x40cac2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40cac6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40caa0
xor eax, eax
jmp 0x40cacb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40cb55
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ecx, edx
sub ecx, esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], eax
sub eax, ecx
mov esi, vtable.CRgn.0
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], esi
push 2
push 3
lea edx, [esp + 0x64]
push edx
mov byte [esp + 0x29c], 3
call dword [sym.imp.GDI32.dll_CreatePolygonRgn]
push eax
lea ecx, [esp + 0x38]
call fcn.00454abe
mov eax, dword [esp + 0x38]
push 4
push eax
mov eax, dword [esp + 0x20]
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
mov byte [esp + 0x290], 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], esi
call fcn.00410510
jmp 0x40cb68
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push 4
push ecx
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
mov eax, dword [edi + 0x20]
push 2
push eax
call dword [sym.imp.USER32.dll_GetWindow]
push eax
call fcn.0044a19b
mov esi, dword [esp + 0x2c]
mov edi, eax
cmp edi, ebx
jne 0x40c930
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x40cb93
xor eax, eax
jmp 0x40cb96
mov eax, dword [eax + 0x20]
push 0xfffffffffffffff6
push eax
call dword [sym.imp.USER32.dll_GetClassLongW]
cmp eax, ebx
jne 0x40cbab
push 0xf
call dword [sym.imp.USER32.dll_GetSysColorBrush]
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x40cbd4
push eax
call fcn.00454aaa
cmp eax, ebx
jne 0x40cbc1
xor eax, eax
jmp 0x40cbc4
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.GDI32.dll_FillRgn]
mov byte [esp + 0x290], bl
mov esi, vtable.CRgn.0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], esi
call fcn.00410510
mov dword [esp + 0x290], 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
call fcn.00410510
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.00545559
mov esp, ebp
pop ebp
ret 4