Function at 0x4052c1
Capabilities:
Capture screenshot
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
mov eax, dword [ebp + 8]
call fcn.00404bfc
mov esi, edx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
cmp eax, 6
jne 0x4053c6
mov dword [esi + 0x94], 0
mov dword [ebp - 0x24], 0
cmp dword [esi + 8], 0
je 0x405c94
cmp dword [esi + 0xc], 0
je 0x405c94
cmp dword [0x47fcf2], 0
jne 0x405c94
mov dword [ebp - 0x24], 0
push ebx
lea eax, [esi + 0x50]
push eax
call fcn.00405f89
or eax, eax
je 0x405356
mov dword [esi + 0x94], 1
mov eax, dword [esi + 0x10]
cmp eax, 2
je 0x405340
cmp eax, 4
jne 0x40534b
push dword [0x45ee3a]
pop dword [ebp - 0x24]
jmp 0x4053a4
push dword [0x45ee36]
pop dword [ebp - 0x24]
jmp 0x4053a4
push ebx
lea eax, [esi + 0x70]
push eax
call fcn.00405f89
or eax, eax
je 0x4053a4
mov dword [ebp - 0x24], 0x7f89
mov dword [esi + 0x94], 2
push ebx
lea eax, [esi + 0x80]
push eax
call fcn.00405f89
or eax, eax
je 0x405397
mov dword [ebp - 0x24], 0x7f00
mov dword [esi + 0x94], 3
push dword [ebp - 0x24]
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
or eax, eax
je 0x4053c1
mov dword [0x47fd42], eax
push eax
call sub.user32.dll_SetCursor
mov eax, 1
pop esi
pop ebx
leave
ret 0xc
jmp 0x405c94
cmp eax, 0x13
jne 0x4053d5
call fcn.00405e5c
jmp 0x405c94
cmp eax, 0x11
jne 0x40543e
mov eax, dword [esi]
cmp eax, 1
jne 0x4053e8
mov eax, 0xa414
jmp 0x405416
cmp eax, 2
jne 0x4053f4
mov eax, 0xa413
jmp 0x405416
cmp eax, 3
jne 0x405400
mov eax, 0xa412
jmp 0x405416
cmp eax, 4
jne 0x40540c
mov eax, 0xa415
jmp 0x405416
cmp eax, 5
jne 0x405416
mov eax, 0
or eax, eax
je 0x40542e
push dword [esi + 8]
push eax
push 0x402
push dword [0x4538b8]
call sub.user32.dll_SendMessageA
mov eax, 1
pop esi
pop ebx
leave
ret 0xc
cmp eax, 7
jne 0x405565
cmp dword [esi + 0x94], 0
je 0x405c94
cmp dword [esi + 0x94], 3
jne 0x405491
mov dword [esi + 8], 0
push 0
push 0x11
push dword [ebp + 8]
call fcn.004052c1
push 0
push 0
push 5
push dword [0x4538b0]
call sub.user32.dll_SendMessageA
mov eax, 1
pop esi
pop ebx
leave
ret 0xc
push dword [ebp + 8]
call sub.user32.dll_SetFocus
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x3c]
push eax
push dword [0x4538b0]
call sub.user32.dll_ClientToScreen
lea eax, [esi + 0x30]
push eax
push 0x47fd0a
call sub.user32.dll_CopyRect
mov eax, dword [ebp - 0x3c]
dec eax
add dword [0x47fd0a], eax
inc eax
inc eax
add dword [0x47fd12], eax
mov eax, dword [ebp - 0x38]
add dword [0x47fd0e], eax
inc eax
add dword [0x47fd16], eax
push 0x47fd0a
push 0x47fcfa
call sub.user32.dll_CopyRect
push dword [0x47fd42]
call sub.user32.dll_SetCursor
push dword [0x4538b0]
call sub.user32.dll_SetCapture
cmp dword [esi + 0x94], 1
jne 0x405536
mov eax, dword [ebp + 8]
mov dword [0x47fcf2], eax
push 4
push dword [0x453900]
call sub.user32.dll_ShowWindow
mov eax, 1
pop esi
pop ebx
leave
ret 0xc
cmp dword [esi + 0x94], 2
jne 0x405560
mov eax, dword [ebp + 8]
mov dword [0x47fcf6], eax
push 0
push 0
push 0x47fd0a
call fcn.004048e7
mov eax, 1
pop esi
pop ebx
leave
ret 0xc
jmp 0x405c94
cmp eax, 8
jne 0x405643
call sub.user32.dll_ReleaseCapture
cmp dword [0x47fcf2], 0
je 0x4055cc
mov edx, dword [esi + 0x10]
cmp edx, 4
je 0x405589
cmp edx, 2
jne 0x40559c
mov eax, dword [0x47fd16]
sub eax, dword [0x47fd0e]
sub eax, 1
mov dword [esi + 0x1c], eax
jmp 0x4055bd
cmp edx, 1
je 0x4055a6
cmp edx, 3
jne 0x4055bd
mov eax, dword [0x47fd12]
sub eax, dword [0x47fd0a]
sub eax, 2
cmp edx, 3
jne 0x4055ba
dec eax
mov dword [esi + 0x18], eax
push 0
push dword [0x453900]
call sub.user32.dll_ShowWindow
jmp 0x405625
cmp dword [0x47fcf6], 0
je 0x405625
push 0
push 2
push 0x47fd0a
call fcn.004048e7
call fcn.00405e5c
cmp dword [esi + 0xc], 0
jne 0x405620
mov eax, dword [0x47fd32]
sub eax, dword [0x47fd2a]
mov edx, dword [0x47fd36]
sub edx, dword [0x47fd2e]
push 1
push edx
push eax
push dword [0x47fd2e]
push dword [0x47fd2a]
push dword [esi + 0x98]
call sub.user32.dll_MoveWindow
call fcn.00405c9f
push 0
push 0
push 5
push dword [0x4538b0]
call sub.user32.dll_SendMessageA
push dword [ebp + 8]
call sub.user32.dll_SetFocus
jmp 0x405c94
cmp eax, 4
jne 0x405687
xor dword [esi + 0xc], 1
cmp dword [esi + 8], 0
jne 0x405661
push dword [ebp + 0x10]
push 5
push dword [ebp + 8]
call fcn.004052c1
jmp 0x405672
push 0
push 0
push 5
push dword [0x4538b0]
call sub.user32.dll_SendMessageA
call fcn.00405c9f
mov eax, 1
pop esi
pop ebx
leave
ret 0xc
cmp eax, 5
jne 0x4056e3
xor dword [esi + 8], 1
push 0
push 0x11
push dword [ebp + 8]
call fcn.004052c1
push 0
push 0
push 5
push dword [0x4538b0]
call sub.user32.dll_SendMessageA
push 1
push 0
push dword [0x4538c0]
call sub.user32.dll_InvalidateRect
push 0x10000000
push dword [esi]
push dword [esi + 8]
push 0x47d
push dword [ebp - 0x1c]
call fcn.00408423
mov eax, 1
pop esi
pop ebx
leave
ret 0xc
cmp eax, 0xc
jne 0x40596c
cmp dword [esi + 8], 0
je 0x405c94
cmp dword [esi + 0xc], 0
je 0x405c94
push dword [0x4538b0]
call sub.user32.dll_GetDC
mov dword [ebp - 0x20], eax
push 0x11
call sub.gdi32.dll_GetStockObject
push eax
push dword [ebp - 0x20]
call sub.gdi32.dll_SelectObject
push eax
push 0x10
lea eax, [esi + 0x60]
push eax
push dword [ebp - 0x20]
call sub.user32.dll_FillRect
push 1
push dword [ebp - 0x20]
call sub.gdi32.dll_SetBkMode
push 0x10
lea eax, [esi + 0x50]
push eax
push dword [ebp - 0x20]
call sub.user32.dll_FillRect
cmp dword [esi + 0x90], 0
je 0x405762
push 0xffffff
push dword [ebp - 0x20]
call sub.gdi32.dll_SetTextColor
mov eax, 3
jmp 0x405774
push 0xc0c0c0
push dword [ebp - 0x20]
call sub.gdi32.dll_SetTextColor
mov eax, 4
mov ebx, eax
push eax
lea eax, [esi + 0x70]
push eax
push dword [ebp - 0x20]
call sub.user32.dll_FillRect
mov eax, dword [esi + 0x14]
xor ecx, ecx
or eax, eax
je 0x405799
call fcn.00405226
mov edx, eax
mov ecx, dword [edx + 8]
and ecx, dword [edx + 0xc]
mov eax, dword [esi + 0x10]
cmp dword [0x45c93a], 0
je 0x40591d
cmp eax, 2
je 0x4057b3
cmp eax, 4
jne 0x4057b7
or ecx, ecx
je 0x4057c8
cmp eax, 3
jne 0x4058fc
or ecx, ecx
je 0x4058fc
mov eax, dword [esi + 4]
mov al, byte [eax]
or al, al
je 0x40593c
dec ebx
push ebx
call sub.user32.dll_GetSysColor
mov ebx, eax
push dword [ebp - 0x20]
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0x50], eax
push dword [ebp - 0x20]
call sub.gdi32.dll_GetTextColor
push eax
push dword [ebp - 0x50]
call sub.gdi32.dll_SetTextColor
push 0x11
call sub.gdi32.dll_GetStockObject
push eax
push dword [ebp - 0x50]
call sub.gdi32.dll_SelectObject
push eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
push 0x420
lea eax, [ebp - 0x4c]
push eax
push 0xffffffffffffffff
push dword [esi + 4]
push dword [ebp - 0x50]
call sub.user32.dll_DrawTextA
push dword [ebp - 0x44]
push dword [ebp - 0x40]
push dword [ebp - 0x20]
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x54], eax
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push dword [ebp - 0x20]
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x58], eax
push dword [ebp - 0x58]
push dword [ebp - 0x50]
call sub.gdi32.dll_SelectObject
push eax
push ebx
push dword [ebp - 0x50]
call sub.gdi32.dll_SetBkColor
push 0x20
lea eax, [ebp - 0x4c]
push eax
push 0xffffffffffffffff
push dword [esi + 4]
push dword [ebp - 0x50]
call sub.user32.dll_DrawTextA
push 1
push 0
push 0
push dword [ebp - 0x58]
push dword [ebp - 0x54]
call fcn.00404add
pop eax
push eax
push dword [ebp - 0x50]
call sub.gdi32.dll_SelectObject
push eax
call sub.gdi32.dll_DeleteObject
push dword [ebp - 0x54]
push dword [ebp - 0x50]
call sub.gdi32.dll_SelectObject
push eax
mov eax, dword [esi + 0x74]
inc eax
mov edx, dword [esi + 0x70]
dec edx
push 0xcc0020
push 0
push 0
push dword [ebp - 0x50]
push dword [ebp - 0x44]
push dword [ebp - 0x40]
push eax
push edx
push dword [ebp - 0x20]
call sub.gdi32.dll_BitBlt
pop eax
push eax
push dword [ebp - 0x50]
call sub.gdi32.dll_SelectObject
push eax
call sub.gdi32.dll_DeleteObject
pop eax
push eax
push dword [ebp - 0x50]
call sub.gdi32.dll_SelectObject
push dword [ebp - 0x50]
call sub.gdi32.dll_DeleteDC
jmp 0x40593c
dec dword [esi + 0x74]
inc dword [esi + 0x70]
push 0
lea eax, [esi + 0x70]
push eax
push 0xffffffffffffffff
push dword [esi + 4]
push dword [ebp - 0x20]
call sub.user32.dll_DrawTextA
inc dword [esi + 0x74]
dec dword [esi + 0x70]
jmp 0x40593c
dec dword [esi + 0x74]
inc dword [esi + 0x70]
push 0
lea eax, [esi + 0x70]
push eax
push 0xffffffffffffffff
push dword [esi + 4]
push dword [ebp - 0x20]
call sub.user32.dll_DrawTextA
inc dword [esi + 0x74]
dec dword [esi + 0x70]
push 0
push 1
lea eax, [esi + 0x80]
push eax
push dword [ebp - 0x20]
call sub.user32.dll_DrawFrameControl
push dword [ebp - 0x20]
push dword [0x4538b0]
call sub.user32.dll_ReleaseDC
pop eax
push eax
push dword [ebp - 0x20]
call sub.gdi32.dll_SelectObject
jmp 0x405c94
cmp eax, 0xb
jne 0x405a79
cmp dword [esi + 8], 0
je 0x405a38
cmp dword [esi + 0xc], 0
je 0x4059e0
push 0
push dword [esi + 0x98]
call sub.user32.dll_ShowWindow
push dword [0x4538b0]
push dword [esi + 0x9c]
call sub.user32.dll_SetParent
mov eax, dword [esi + 0x48]
sub eax, dword [esi + 0x40]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x4c]
sub eax, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
push 1
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [esi + 0x44]
push dword [esi + 0x40]
push dword [esi + 0x9c]
call sub.user32.dll_MoveWindow
push 4
push dword [esi + 0x9c]
call sub.user32.dll_ShowWindow
jmp 0x405c94
push dword [esi + 0x98]
push dword [esi + 0x9c]
call sub.user32.dll_SetParent
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x98]
call sub.user32.dll_GetClientRect
push 0
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [esi + 0x9c]
call sub.user32.dll_MoveWindow
push 4
push dword [esi + 0x98]
call sub.user32.dll_ShowWindow
push 4
push dword [esi + 0x9c]
call sub.user32.dll_ShowWindow
jmp 0x405c94
cmp dword [esi + 0xc], 0
je 0x405a5a
push 0
push dword [esi + 0x98]
call sub.user32.dll_ShowWindow
push 0
push dword [esi + 0x9c]
call sub.user32.dll_ShowWindow
jmp 0x405a74
push 0
push dword [esi + 0x9c]
call sub.user32.dll_ShowWindow
push 0
push dword [esi + 0x98]
call sub.user32.dll_ShowWindow
jmp 0x405c94
cmp eax, 0xd
jne 0x405c67
cmp dword [esi + 8], 0
je 0x405c94
cmp dword [esi + 0xc], 0
je 0x405c94
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x34], 0
mov eax, dword [esi + 0x14]
or eax, eax
je 0x405b6d
push dword [esi + 0x18]
pop dword [ebp - 0x14]
push esi
mov eax, dword [esi + 0x14]
call fcn.00405226
mov esi, eax
push dword [esi + 0x10]
pop dword [ebp - 0x28]
push dword [esi + 0x18]
pop dword [ebp - 0x2c]
push dword [esi + 0x1c]
pop dword [ebp - 0x30]
mov eax, dword [esi + 8]
and eax, dword [esi + 0xc]
mov dword [ebp - 0x34], eax
or eax, eax
je 0x405b4a
cmp dword [ebp - 0x28], 1
je 0x405aeb
cmp dword [ebp - 0x28], 3
jne 0x405afc
lea eax, [esi + 0x40]
mov dword [ebp + 0x10], eax
pop eax
push eax
mov dword [eax + 0x10], 4
jmp 0x405b6c
lea eax, [esi + 0x40]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
cmp dword [0x45c93a], 0
je 0x405b2d
add dword [esi + 0x48], 0xd
inc eax
sub dword [esi + 0x70], eax
sub dword [esi + 0x60], eax
sub dword [esi + 0x78], eax
sub dword [esi + 0x68], eax
sub dword [esi + 0x80], eax
sub dword [esi + 0x88], eax
jmp 0x405b3f
sub dword [esi + 0x68], eax
sub dword [esi + 0x78], eax
sub dword [esi + 0x80], eax
sub dword [esi + 0x88], eax
pop eax
push eax
mov dword [eax + 0x10], 3
jmp 0x405b6c
pop esi
push esi
push dword [ebp - 0x28]
pop dword [esi + 0x10]
cmp dword [ebp - 0x28], 1
je 0x405b5e
cmp dword [ebp - 0x28], 3
jne 0x405b66
push dword [ebp - 0x2c]
pop dword [esi + 0x18]
jmp 0x405b6c
push dword [ebp - 0x30]
pop dword [esi + 0x1c]
pop esi
mov ebx, dword [ebp + 0x10]
push ebx
lea eax, [esi + 0x30]
push eax
call sub.user32.dll_CopyRect
mov eax, dword [esi + 0x10]
cmp eax, 1
jne 0x405b9c
mov eax, dword [esi + 0x18]
add dword [ebx], eax
add eax, dword [esi + 0x30]
mov dword [esi + 0x38], eax
call fcn.00405d62
call fcn.00405db4
jmp 0x405c65
cmp eax, 2
jne 0x405bcf
mov eax, dword [esi + 0x1c]
add dword [ebx + 4], eax
add eax, dword [esi + 0x34]
mov dword [esi + 0x3c], eax
call fcn.00405d8b
cmp dword [0x45c93a], 0
je 0x405bc5
call fcn.00405e08
jmp 0x405c65
call fcn.00405db4
jmp 0x405c65
cmp eax, 3
jne 0x405c26
mov eax, dword [esi + 0x18]
sub dword [ebx + 8], eax
neg eax
add eax, dword [esi + 0x38]
mov dword [esi + 0x30], eax
call fcn.00405d10
cmp dword [esi + 0x14], 0
je 0x405c07
cmp dword [0x45c93a], 0
je 0x405c07
cmp dword [ebp - 0x34], 0
je 0x405c07
sub dword [ebx + 8], 0xe
call fcn.00405e08
jmp 0x405c65
cmp dword [esi + 0x14], 0
je 0x405c1f
cmp dword [ebp - 0x34], 0
je 0x405c1f
sub dword [esi + 0x34], 0xe
sub dword [esi + 0x44], 0xe
sub dword [esi + 0x54], 0xe
call fcn.00405db4
jmp 0x405c65
cmp eax, 4
jne 0x405c65
mov eax, dword [esi + 0x1c]
sub dword [ebx + 0xc], eax
neg eax
add eax, dword [esi + 0x3c]
mov dword [esi + 0x34], eax
call fcn.00405d39
cmp dword [ebp - 0x28], 1
je 0x405c4a
cmp dword [ebp - 0x28], 3
jne 0x405c50
cmp dword [ebp - 0x34], 0
jne 0x405c59
cmp dword [0x45c93a], 0
jne 0x405c60
call fcn.00405db4
jmp 0x405c65
call fcn.00405e08
jmp 0x405c94
cmp eax, 0xe
jne 0x405c77
mov eax, dword [esi + 8]
pop esi
pop ebx
leave
ret 0xc
cmp eax, 0x12
jne 0x405c87
mov eax, dword [esi + 0xc]
pop esi
pop ebx
leave
ret 0xc
cmp eax, 0xf
jne 0x405c94
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
mov eax, 0
pop esi
pop ebx
leave
ret 0xc