Function at 0x43fd86
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x45a2fc]
push ebx
push esi
push edi
xor edi, edi
cmp eax, 0xffffffff
mov dword [ebp - 0x28], edi
jne 0x43fdbd
push 0x1003
push 0x5000
call fcn.00430bd4
cmp eax, edi
mov dword [0x45a2fc], eax
jl 0x44052d
push 0x4d
push eax
call fcn.00430c23
mov ebx, eax
cmp ebx, edi
je 0x44052d
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
mov dword [ebx + 0x20], 1
mov dword [ebx + 0x44], esi
push dword [0x45ffcc]
push str.WinSupClass
call dword [sym.imp.USER32.dll_UnregisterClassA]
lea eax, [ebp - 0xec]
push eax
push str.WinSupClass
push dword [0x45ffcc]
call dword [sym.imp.USER32.dll_GetClassInfoA]
test eax, eax
jne 0x43fe6d
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 [0x45ffcc]
push 1
push eax
mov dword [ebp - 0x40], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push edi
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], 0x4601f4
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 [ebx + 4]
call fcn.00403693
cmp byte [ebp - 0xc4], 0
jne 0x43fea4
lea eax, [ebp - 0xc4]
push 0x45a148
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 4]
push eax
push edi
push 0x10
push dword [ebx + 4]
call fcn.00403693
cmp dword [ebp - 4], edi
jne 0x43fec1
mov dword [ebx + 0x2c], 8
jmp 0x43fec4
mov dword [ebx + 0x2c], edi
lea eax, [ebp - 4]
push eax
push edi
push 0x22
push dword [ebx + 4]
call fcn.00403693
cmp dword [ebp - 4], 1
jne 0x4403f5
lea eax, [ebp - 4]
push eax
push edi
push 0x33
push dword [ebx + 4]
call fcn.00403693
cmp dword [ebp - 4], 1
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
jne 0x43ffc6
cmp dword [0x45feb4], 0
jne 0x43fffe
lea eax, [ebp - 4]
push eax
push 0
push 0x1f
push dword [ebx + 4]
call fcn.00403693
lea eax, [ebp - 0xec]
push eax
push str.WinSupBackClass
push dword [0x45ffcc]
call dword [sym.imp.USER32.dll_GetClassInfoA]
test eax, eax
jne 0x43ff8c
push 0x28
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00442900
mov eax, dword [0x45ffcc]
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 [0x45ffcc]
push eax
push eax
push 1
call edi
push eax
push 0
call edi
push eax
push 0
push 0
lea eax, [ebp - 0xc4]
push 0x82000000
push eax
push str.WinSupBackClass
push dword [ebx + 0x2c]
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x45feb4], eax
jmp 0x43fffe
mov eax, dword [0x45feb4]
test eax, eax
je 0x43fffe
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x43fffe
push dword [0x45feb4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x45ffcc]
and dword [0x45feb4], 0
push str.WinSupBackClass
call dword [sym.imp.USER32.dll_UnregisterClassA]
lea eax, [ebp - 4]
push eax
push 0
push 0xc
push dword [ebx + 4]
call fcn.00403693
mov eax, dword [ebp - 4]
test ax, ax
jne 0x44001f
mov dword [esi + 8], 0x280
jmp 0x44002d
push 0x32
pop ecx
cmp ax, cx
jb 0x44002a
movzx ecx, ax
mov dword [esi + 8], ecx
shr eax, 0x10
test ax, ax
jne 0x44003e
mov dword [esi + 0xc], 0x1e0
jmp 0x44004f
cmp ax, 0x32
jae 0x440049
push 0x32
pop eax
jmp 0x44004c
movzx eax, ax
mov dword [esi + 0xc], eax
lea eax, [ebp - 4]
push eax
push 0
push 0x25
push dword [ebx + 4]
call fcn.00403693
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 + 8], ecx
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 0x1b
add ecx, 5
neg eax
sbb eax, eax
mov dword [ebp + 0xc], ecx
and eax, 0x1b
add eax, 6
mov dword [ebp - 0x10], eax
call edi
cmp dword [esi + 8], eax
jne 0x4400ac
push 1
call edi
cmp dword [esi + 0xc], eax
jne 0x4400ac
and dword [ebp + 8], 0
lea eax, [ebp - 4]
push eax
push 0
push 0x36
push dword [ebx + 4]
call fcn.00403693
test byte [ebp - 4], 2
je 0x4400c6
and dword [ebp + 8], 0
lea eax, [ebp - 4]
push eax
push 0
push 0x1d
push dword [ebx + 4]
call fcn.00403693
mov eax, dword [ebp - 4]
movzx ecx, ax
shr eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2f
mov dword [ebp - 8], ecx
push dword [ebx + 4]
call fcn.00403693
cmp dword [ebp - 4], 0
jne 0x440150
push 0
call edi
imul eax, dword [ebp - 8]
cdq
mov ecx, 0x280
push 1
idiv ecx
mov dword [ebp - 8], eax
call edi
imul eax, dword [ebp - 0xc]
cdq
mov ecx, 0x1e0
push 0
idiv ecx
mov dword [ebp - 0xc], eax
call edi
imul eax, dword [esi]
cdq
mov ecx, 0x280
push 1
idiv ecx
mov dword [esi], eax
call edi
imul eax, dword [esi + 4]
cdq
mov ecx, 0x1e0
idiv ecx
mov dword [esi + 4], eax
lea eax, [ebp - 4]
push eax
push 0
push 0x13
push dword [ebx + 4]
call fcn.00403693
cmp dword [ebp - 4], 1
jne 0x44016c
and dword [ebp + 0x18], 0
jmp 0x440199
cmp dword [ebp + 8], 0x40000
mov dword [ebp + 0x18], 0xca0000
jne 0x440199
lea eax, [ebp - 4]
push eax
push 0
push 0x25
push dword [ebx + 4]
call fcn.00403693
test byte [ebp - 4], 2
je 0x440199
mov dword [ebp + 0x18], 0xfa0000
mov eax, dword [esi]
cmp dword [ebp + 8], 0
mov dword [ebp + 0x1c], eax
je 0x4401b2
push dword [ebp + 0xc]
call edi
mov ecx, dword [ebp + 0x1c]
lea eax, [ecx + eax*2]
mov dword [ebp + 0x1c], eax
cmp dword [ebp + 8], 0x800000
jne 0x4401cf
cmp dword [ebp + 0x18], 0
je 0x4401cf
push dword [ebp + 0xc]
call edi
mov ecx, dword [ebp + 0x1c]
lea eax, [ecx + eax*4]
mov dword [ebp + 0x1c], eax
push 0
call edi
cmp dword [ebp + 0x1c], eax
jle 0x440211
push 0
call edi
push 0
mov dword [ebp + 0x1c], eax
call edi
cmp dword [ebp + 8], 0
mov dword [esi], eax
je 0x4401f6
push dword [ebp + 0xc]
call edi
neg eax
shl eax, 1
add dword [esi], eax
cmp dword [ebp + 8], 0x800000
jne 0x440211
cmp dword [ebp + 0x18], 0
je 0x440211
push dword [ebp + 0xc]
call edi
neg eax
shl eax, 2
add dword [esi], eax
mov eax, dword [esi + 4]
cmp dword [ebp + 8], 0
mov dword [ebp + 0xc], eax
je 0x44022b
push dword [ebp - 0x10]
call edi
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + eax*2]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x18], 0
je 0x44024f
cmp dword [ebp + 8], 0x800000
jne 0x440248
push dword [ebp - 0x10]
call edi
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + eax*4]
mov dword [ebp + 0xc], eax
push 4
call edi
add dword [ebp + 0xc], eax
push 1
call edi
cmp dword [ebp + 0xc], eax
jle 0x44029b
push 1
call edi
push 1
mov dword [ebp + 0xc], eax
call edi
cmp dword [ebp + 8], 0
mov dword [esi + 4], eax
je 0x440278
push dword [ebp - 0x10]
call edi
neg eax
shl eax, 1
add dword [esi + 4], eax
cmp dword [ebp + 0x18], 0
je 0x44029b
cmp dword [ebp + 8], 0x800000
jne 0x440294
push dword [ebp - 0x10]
call edi
neg eax
shl eax, 2
add dword [esi + 4], eax
push 4
call edi
sub dword [esi + 4], eax
lea eax, [ebp - 4]
push eax
push 0
push 0x16
push dword [ebx + 4]
call fcn.00403693
cmp dword [ebp - 4], 1
jne 0x4402d1
xor esi, esi
push esi
call edi
sub eax, dword [ebp + 0x1c]
push 1
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 8], eax
call edi
sub eax, dword [ebp + 0xc]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x4402d6
mov edi, dword [ebp - 0xc]
xor esi, esi
mov ecx, dword [0x45fc3c]
mov edx, 0xfffffc18
cmp ecx, edx
je 0x4402f6
mov eax, dword [0x45fc40]
cmp eax, edx
je 0x4402f6
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
mov edi, eax
push 0x18
mov dword [ebx + 0x30], esi
call fcn.004302ad
push esi
mov dword [ebx + 0x40], eax
push dword [0x45ffcc]
mov eax, dword [ebp + 0x18]
or eax, dword [ebp + 8]
push esi
push dword [0x45feb4]
or eax, 0x82000000
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push edi
push dword [ebp - 8]
push eax
lea eax, [ebp - 0xc4]
push eax
push str.WinSupClass
push dword [ebx + 0x2c]
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 0x14], eax
mov eax, dword [0x45feb4]
cmp eax, esi
je 0x440352
push 1
push esi
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [ebp - 0x14], esi
je 0x440519
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 [ebx + 0x40]
call fcn.0043013d
push ebx
push esi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push esi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetSystemMenu]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x4403c5
mov edi, dword [sym.imp.USER32.dll_AppendMenuA]
push esi
push esi
push 0x800
push eax
call edi
push str.About...
push 0x1000
push esi
push dword [ebp + 8]
call edi
mov edi, dword [sym.imp.USER32.dll_ShowScrollBar]
push esi
push esi
push dword [ebp - 0x14]
call edi
push esi
push 1
push dword [ebp - 0x14]
call edi
push 1
push ebx
call fcn.0044095d
push eax
call fcn.00430fd6
mov dword [ebx + 0x48], eax
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x18
mov eax, dword [ebp + 0x18]
push 1
movzx ecx, ax
shr eax, 0x10
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esi + 4], eax
imul eax, dword [esi + 8]
cdq
idiv dword [esi + 0xc]
push edi
mov dword [esi], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp dword [esi], eax
jle 0x44043c
push edi
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, eax
mov eax, dword [esi + 0xc]
imul eax, ecx
cdq
idiv dword [esi + 8]
mov dword [esi], ecx
mov dword [esi + 4], eax
push edi
push edi
push edi
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
push dword [esi + 4]
mov dword [ebp + 8], eax
push dword [esi]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
cmp eax, edi
mov dword [ebx + 0x30], eax
je 0x440499
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebx + 0x30]
mov dword [ebp + 0xc], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push edi
push edi
push dword [ebp + 8]
push dword [esi + 4]
push dword [esi]
push edi
push edi
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.004302ad
mov dword [ebx + 0x40], eax
xor esi, esi
push edi
push dword [0x45ffcc]
push edi
push edi
push 0x14
push 0x14
push esi
push esi
push SysReAllocStringLen
push 0x45a148
push str.WinSupClass
push dword [ebx + 0x2c]
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x440519
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 [ebx + 0x40]
call fcn.0043013d
push ebx
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetWindowLongA]
add esi, 0x32
cmp esi, 0x64
jl 0x4404ae
jmp 0x4403da
push dword [ebx + 0x40]
call fcn.004302f8
push ebx
push dword [0x45a2fc]
call fcn.00430cfe
xor eax, eax
jmp 0x4403ee