Function at 0x4398e0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x4688c0]
push ebx
xor ebx, ebx
push esi
cmp eax, 0xffffffff
push edi
mov dword [ebp - 0x28], ebx
jne 0x439917
push 0x1003
push 0x5000
call fcn.0040a238
cmp eax, ebx
mov dword [0x4688c0], eax
jl 0x43a015
push 0x4d
push eax
call fcn.0040a287
mov esi, eax
cmp esi, ebx
je 0x43a015
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov dword [esi + 0x20], 1
mov dword [esi + 0x44], edi
push dword [0x46f8a8]
push str.WinSupClass
call dword [sym.imp.USER32.dll_UnregisterClassA]
lea eax, [ebp - 0xec]
push eax
push str.WinSupClass
push dword [0x46f8a8]
call dword [sym.imp.USER32.dll_GetClassInfoA]
test eax, eax
jne 0x4399c7
push 4
mov dword [ebp - 0x50], 0xb
pop eax
mov dword [ebp - 0x4c], sym.DEMO32.EXE_WinSupWndProc
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov eax, dword [0x46f8a8]
push 1
push eax
mov dword [ebp - 0x40], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push ebx
mov dword [ebp - 0x3c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x34], 0x11
mov dword [ebp - 0x30], 0x46fb08
mov dword [ebp - 0x2c], str.WinSupClass
call dword [sym.imp.USER32.dll_RegisterClassA]
and byte [ebp - 0xc4], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc4]
push eax
push 0x28
push dword [esi + 4]
call fcn.0040b5d8
cmp byte [ebp - 0xc4], 0
jne 0x4399fe
lea eax, [ebp - 0xc4]
push 0x468148
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 4]
push eax
push ebx
push 0x10
push dword [esi + 4]
call fcn.0040b5d8
cmp dword [ebp - 4], ebx
jne 0x439a1b
mov dword [esi + 0x2c], 8
jmp 0x439a1e
mov dword [esi + 0x2c], ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x22
push dword [esi + 4]
call fcn.0040b5d8
cmp dword [ebp - 4], 1
jne 0x439ee1
lea eax, [ebp - 4]
push eax
push ebx
push 0x33
push dword [esi + 4]
call fcn.0040b5d8
cmp dword [ebp - 4], 1
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
jne 0x439b20
cmp dword [0x46f78c], 0
jne 0x439b58
lea eax, [ebp - 4]
push eax
push 0
push 0x1f
push dword [esi + 4]
call fcn.0040b5d8
lea eax, [ebp - 0xec]
push eax
push str.WinSupBackClass
push dword [0x46f8a8]
call dword [sym.imp.USER32.dll_GetClassInfoA]
test eax, eax
jne 0x439ae6
push 0x28
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004447a0
mov eax, dword [0x46f8a8]
add esp, 0xc
mov dword [ebp - 0x4c], sym.DEMO32.EXE_WinSupBackWndProc
mov dword [ebp - 0x40], eax
push 1
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [ebp - 0x3c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push dword [ebp - 4]
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x2c], str.WinSupBackClass
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x46f8a8]
push eax
push eax
push 1
call ebx
push eax
push 0
call ebx
push eax
push 0
push 0
lea eax, [ebp - 0xc4]
push 0x82000000
push eax
push str.WinSupBackClass
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x46f78c], eax
jmp 0x439b58
mov eax, dword [0x46f78c]
test eax, eax
je 0x439b58
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x439b58
push dword [0x46f78c]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x46f8a8]
and dword [0x46f78c], 0
push str.WinSupBackClass
call dword [sym.imp.USER32.dll_UnregisterClassA]
lea eax, [ebp - 4]
push eax
push 0
push 0xc
push dword [esi + 4]
call fcn.0040b5d8
mov eax, dword [ebp - 4]
test ax, ax
jne 0x439b79
mov dword [edi + 8], 0x280
jmp 0x439b87
push 0x32
pop ecx
cmp ax, cx
jb 0x439b84
movzx ecx, ax
mov dword [edi + 8], ecx
shr eax, 0x10
test ax, ax
jne 0x439b98
mov dword [edi + 0xc], 0x1e0
jmp 0x439ba9
cmp ax, 0x32
jae 0x439ba3
push 0x32
pop eax
jmp 0x439ba6
movzx eax, ax
mov dword [edi + 0xc], eax
lea eax, [ebp - 4]
push eax
push 0
push 0x25
push dword [esi + 4]
call fcn.0040b5d8
mov eax, dword [ebp - 4]
push 0
and eax, 1
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 0xff840000
add ecx, 0x800000
mov dword [ebp + 0xc], ecx
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 0x1b
add ecx, 5
neg eax
sbb eax, eax
mov dword [ebp + 8], ecx
and eax, 0x1b
add eax, 6
mov dword [ebp - 0x10], eax
call ebx
cmp dword [edi + 8], eax
jne 0x439c06
push 1
call ebx
cmp dword [edi + 0xc], eax
jne 0x439c06
and dword [ebp + 0xc], 0
lea eax, [ebp - 4]
push eax
push 0
push 0x36
push dword [esi + 4]
call fcn.0040b5d8
test byte [ebp - 4], 2
je 0x439c20
and dword [ebp + 0xc], 0
lea eax, [ebp - 4]
push eax
push 0
push 0x1d
push dword [esi + 4]
call fcn.0040b5d8
mov eax, dword [ebp - 4]
movzx ecx, ax
shr eax, 0x10
mov dword [ebp + 0x18], eax
mov eax, dword [edi + 0xc]
mov dword [edi + 4], eax
mov eax, dword [edi + 8]
mov dword [edi], eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2f
mov dword [ebp - 8], ecx
push dword [esi + 4]
call fcn.0040b5d8
cmp dword [ebp - 4], 0
jne 0x439caa
push 0
call ebx
imul eax, dword [ebp - 8]
cdq
mov ecx, 0x280
push 1
idiv ecx
mov dword [ebp - 8], eax
call ebx
imul eax, dword [ebp + 0x18]
cdq
mov ecx, 0x1e0
push 0
idiv ecx
mov dword [ebp + 0x18], eax
call ebx
imul eax, dword [edi]
cdq
mov ecx, 0x280
push 1
idiv ecx
mov dword [edi], eax
call ebx
imul eax, dword [edi + 4]
cdq
mov ecx, 0x1e0
idiv ecx
mov dword [edi + 4], eax
lea eax, [ebp - 4]
push eax
push 0
push 0x13
push dword [esi + 4]
call fcn.0040b5d8
cmp dword [ebp - 4], 1
jne 0x439cc6
and dword [ebp - 0xc], 0
jmp 0x439cf3
cmp dword [ebp + 0xc], 0x40000
mov dword [ebp - 0xc], 0xca0000
jne 0x439cf3
lea eax, [ebp - 4]
push eax
push 0
push 0x25
push dword [esi + 4]
call fcn.0040b5d8
test byte [ebp - 4], 2
je 0x439cf3
mov dword [ebp - 0xc], 0xfa0000
mov eax, dword [edi]
cmp dword [ebp + 0xc], 0
mov dword [ebp + 0x1c], eax
je 0x439d0c
push dword [ebp + 8]
call ebx
mov ecx, dword [ebp + 0x1c]
lea eax, [ecx + eax*2]
mov dword [ebp + 0x1c], eax
cmp dword [ebp + 0xc], 0x800000
jne 0x439d29
cmp dword [ebp - 0xc], 0
je 0x439d29
push dword [ebp + 8]
call ebx
mov ecx, dword [ebp + 0x1c]
lea eax, [ecx + eax*4]
mov dword [ebp + 0x1c], eax
mov edi, dword [edi + 4]
cmp dword [ebp + 0xc], 0
mov dword [ebp + 8], edi
je 0x439d40
push dword [ebp - 0x10]
call ebx
lea eax, [edi + eax*2]
mov dword [ebp + 8], eax
cmp dword [ebp - 0xc], 0
je 0x439d64
cmp dword [ebp + 0xc], 0x800000
jne 0x439d5d
push dword [ebp - 0x10]
call ebx
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*4]
mov dword [ebp + 8], eax
push 4
call ebx
add dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
push 0
push 0x16
push dword [esi + 4]
call fcn.0040b5d8
cmp dword [ebp - 4], 1
jne 0x439dc0
xor edi, edi
push edi
call ebx
sub eax, dword [ebp + 0x1c]
cdq
sub eax, edx
sar eax, 1
jns 0x439d8e
mov dword [ebp - 8], edi
jmp 0x439d9c
push edi
call ebx
sub eax, dword [ebp + 0x1c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 8], eax
push 1
call ebx
sub eax, dword [ebp + 8]
cdq
sub eax, edx
sar eax, 1
jns 0x439daf
mov dword [ebp + 0x18], edi
jmp 0x439dc2
push 1
call ebx
sub eax, dword [ebp + 8]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 0x18], eax
jmp 0x439dc2
xor edi, edi
mov ecx, dword [0x46f514]
mov edx, 0xfffffc18
cmp ecx, edx
je 0x439de0
mov eax, dword [0x46f518]
cmp eax, edx
je 0x439de0
mov dword [ebp - 8], ecx
mov dword [ebp + 0x18], eax
push 0x18
mov dword [esi + 0x30], edi
call fcn.00409076
push edi
mov dword [esi + 0x40], eax
push dword [0x46f8a8]
mov eax, dword [ebp - 0xc]
or eax, dword [ebp + 0xc]
push edi
push dword [0x46f78c]
or eax, 0x82000000
push dword [ebp + 8]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 8]
push eax
lea eax, [ebp - 0xc4]
push eax
push str.WinSupClass
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 0x14], eax
mov eax, dword [0x46f78c]
cmp eax, edi
je 0x439e3e
push 1
push edi
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [ebp - 0x14], edi
je 0x43a001
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 1
push eax
push dword [esi + 0x40]
call fcn.00408f06
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetSystemMenu]
cmp eax, edi
mov dword [ebp + 8], eax
je 0x439eb1
mov ebx, dword [sym.imp.USER32.dll_AppendMenuA]
push edi
push edi
push 0x800
push eax
call ebx
push str.About...
push 0x1000
push edi
push dword [ebp + 8]
call ebx
mov ebx, dword [sym.imp.USER32.dll_ShowScrollBar]
push edi
push edi
push dword [ebp - 0x14]
call ebx
push edi
push 1
push dword [ebp - 0x14]
call ebx
push 1
push esi
call fcn.0043a445
push eax
call fcn.0040a63f
mov dword [esi + 0x48], eax
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x18
mov eax, dword [ebp + 0x18]
push 1
movzx ecx, ax
shr eax, 0x10
mov dword [edi + 8], ecx
mov dword [edi + 0xc], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [edi + 4], eax
imul eax, dword [edi + 8]
cdq
idiv dword [edi + 0xc]
push ebx
mov dword [edi], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp dword [edi], eax
jle 0x439f24
push ebx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [edi], eax
imul eax, dword [edi + 0xc]
cdq
idiv dword [edi + 8]
mov dword [edi + 4], eax
push ebx
push ebx
push ebx
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
push dword [edi + 4]
mov dword [ebp + 8], eax
push dword [edi]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
cmp eax, ebx
mov dword [esi + 0x30], eax
je 0x439f81
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esi + 0x30]
mov dword [ebp + 0xc], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push ebx
push ebx
push dword [ebp + 8]
push dword [edi + 4]
push dword [edi]
push ebx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0x18
call fcn.00409076
mov dword [esi + 0x40], eax
xor edi, edi
push ebx
push dword [0x46f8a8]
push ebx
push ebx
push 0x14
push 0x14
push edi
push edi
push SysReAllocStringLen
push 0x468148
push str.WinSupClass
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x43a001
lea ecx, [ebp - 0x60]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
lea eax, [ebp - 0x28]
push eax
push dword [esi + 0x40]
call fcn.00408f06
push esi
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetWindowLongA]
add edi, 0x32
cmp edi, 0x64
jl 0x439f96
jmp 0x439ec6
push dword [esi + 0x40]
call fcn.004090c1
push esi
push dword [0x4688c0]
call fcn.0040a362
xor eax, eax
jmp 0x439eda