Function at 0x40d570
Capabilities:
Capture screenshot

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push eax
call fcn.0040cbc0
add esp, 4
cmp eax, 0xffffffff
mov dword [esp], eax
jne 0x40d58f
xor eax, eax
add esp, 8
ret
mov ecx, dword [esp + 0x18]
push edi
push esi
push ebp
cmp ecx, 1
push ebx
jne case.default.0x40d5a9
cmp eax, 0xa
ja case.default.0x40d5a9
jmp dword [eax*4 + 0x40d7dc]
mov ecx, dword [esp + 0x20]
push 0x195
push ecx
call fcn.00405f40
mov edx, dword [esp + 0x2c]
add esp, 8
mov esi, eax
mov dword [edx], 0x46
jmp 0x40d70d
mov eax, dword [esp + 0x20]
push 0x196
push eax
call fcn.00405f40
mov ecx, dword [esp + 0x2c]
add esp, 8
mov esi, eax
mov dword [ecx], 0x4b
jmp 0x40d70d
mov edx, dword [esp + 0x20]
push 0x197
push edx
call fcn.00405f40
mov esi, eax
mov eax, dword [esp + 0x2c]
add esp, 8
mov dword [eax], 0x4d
jmp 0x40d70d
mov ecx, dword [esp + 0x20]
push 0x198
push ecx
call fcn.00405f40
mov edx, dword [esp + 0x2c]
add esp, 8
mov esi, eax
mov dword [edx], 0x52
jmp 0x40d70d
push 0x199
jmp 0x40d68e
mov edx, dword [esp + 0x20]
push 0x19a
push edx
call fcn.00405f40
mov esi, eax
mov eax, dword [esp + 0x2c]
add esp, 8
mov dword [eax], 0x1d
jmp 0x40d70d
mov ecx, dword [esp + 0x20]
push 0x19b
push ecx
call fcn.00405f40
mov edx, dword [esp + 0x2c]
add esp, 8
mov esi, eax
mov dword [edx], 0x1d
jmp 0x40d70d
push 0x19c
mov eax, dword [esp + 0x24]
push eax
call fcn.00405f40
mov ecx, dword [esp + 0x2c]
add esp, 8
mov esi, eax
mov dword [ecx], 0x1d
jmp 0x40d70d
mov edx, dword [esp + 0x20]
push 0x192
push edx
call fcn.00405f40
mov esi, eax
mov eax, dword [esp + 0x2c]
add esp, 8
mov dword [eax], 0x28
jmp 0x40d70d
mov ecx, dword [esp + 0x20]
push 0x193
push ecx
call fcn.00405f40
mov edx, dword [esp + 0x2c]
add esp, 8
mov esi, eax
mov dword [edx], 0x2d
jmp 0x40d70d
mov eax, dword [esp + 0x20]
push 0x194
push eax
call fcn.00405f40
mov ecx, dword [esp + 0x2c]
add esp, 8
mov esi, eax
mov dword [ecx], 0x3f
jmp 0x40d70d
mov esi, dword [esp + 0x20]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
push ebx
call edi
push ebx
mov ebp, eax
call edi
push esi
mov edi, eax
call fcn.00401180
add esp, 4
push eax
push esi
call fcn.00401160
add esp, 4
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push ebx
push 0
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esp + 0x24]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push edi
call ebx
push esi
push ebp
mov dword [esp + 0x30], eax
call ebx
push 0xcc0020
push 0
push 0
push ebp
push esi
mov dword [esp + 0x28], eax
call fcn.00401180
add esp, 4
push eax
push esi
call fcn.00401160
add esp, 4
push eax
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
push edi
call fcn.0040d080
mov eax, dword [esp + 0x38]
add esp, 0x10
push eax
push edi
call ebx
mov ecx, dword [esp + 0x14]
push ecx
push ebp
call ebx
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push ebp
call esi
push edi
call esi
mov eax, dword [esp + 0x24]
pop ebx
pop ebp
pop esi
pop edi
add esp, 8
ret