Function at 0x4050d0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43ef42
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push edi
mov eax, dword [0x451530]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
lea ecx, [esp + 0x2c]
call fcn.00414a5f
xor ebx, ebx
mov dword [esp + 0x48], ebx
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00414f49
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x405126
xor eax, eax
jmp 0x405129
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x30]
call fcn.00414f5d
lea eax, [esi + 0x2e4]
cmp eax, ebx
jne 0x405148
xor eax, eax
jmp 0x40514b
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call fcn.004152be
lea edx, [esp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x2d8]
cmp eax, ebx
je 0x4051c0
mov ecx, dword [esi + 0x2dc]
cmp ecx, ebx
jne 0x405181
xor ecx, ecx
jmp 0x405184
mov ecx, dword [ecx + 4]
push ecx
mov ecx, dword [eax + 4]
push ecx
call fcn.004152be
mov ecx, dword [esi + 0x2e0]
cmp ecx, ebx
je 0x4051a1
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov ecx, dword [esi + 0x2d8]
mov dword [esi + 0x2e0], ebx
cmp ecx, ebx
je 0x4051ba
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov dword [esi + 0x2d8], ebx
cmp dword [esi + 0x2d8], ebx
jne 0x40528a
push 0x10
call fcn.0040a6c2
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x48], 1
cmp eax, ebx
je 0x4051ee
mov ecx, eax
call fcn.00414a5f
mov edi, eax
jmp 0x4051f0
xor edi, edi
mov eax, dword [esp + 0x10]
mov byte [esp + 0x48], bl
mov dword [esi + 0x2d8], edi
cmp eax, ebx
jne 0x405206
xor eax, eax
jmp 0x405209
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, edi
call fcn.00414f5d
push 8
call fcn.0040a6c2
add esp, 4
cmp eax, ebx
je 0x405233
mov dword [eax + 4], ebx
mov dword [eax], vtable.CBitmap.0
mov edi, eax
jmp 0x405235
xor edi, edi
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x2e0], edi
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.0041522f
mov eax, dword [esi + 0x2e0]
mov ecx, dword [esi + 0x2d8]
cmp eax, ebx
jne 0x405277
xor eax, eax
jmp 0x40527a
mov eax, dword [eax + 4]
push eax
mov eax, dword [ecx + 4]
push eax
call fcn.004152be
mov dword [esi + 0x2dc], eax
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
sub eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x2d8]
push 0xcc0020
push ebx
push ebx
push edi
push eax
push ecx
mov ecx, dword [edx + 4]
push ebx
push ebx
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x4052c6
xor eax, eax
jmp 0x4052c9
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x30]
push eax
push edx
call fcn.004152be
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi + 0x20]
call fcn.0040a640
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.00414fdc
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret