Function at 0x405170
Capabilities:
Capture screenshot
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x580738
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x5e4a44]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4051ec
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x48]
mov edx, dword [esi + 0x84]
mov ecx, dword [esp + 0x50]
mov ebx, dword [esi + 0x80]
add esi, 0x74
push edx
mov edx, dword [esp + 0x50]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x4c]
sub edx, ecx
push edx
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push ecx
call fcn.00404ee0
jmp 0x4056ef
xor ebx, ebx
xor edi, edi
cmp dword [esi + 0xa4], ebx
je 0x4056ef
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x34]
call fcn.00455a7b
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], vtable.CBitmap.0
mov ecx, dword [ebp + 8]
mov byte [esp + 0x60], 1
cmp ecx, eax
je 0x405235
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x38]
call fcn.0045600e
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x20]
call fcn.004562e0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
push edx
push eax
call fcn.0045636f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
call fcn.00456a45
lea ecx, [esp + 0x44]
call fcn.00455a7b
mov ecx, dword [ebp + 8]
mov byte [esp + 0x60], 2
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x48]
call fcn.0045600e
mov edx, dword [esi + 0xa4]
mov eax, dword [esp + 0x48]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x14], eax
movzx eax, byte [esi + 0xb4]
cmp eax, 0xc
ja case.default.0x4052e9
jmp dword [eax*4 + 0x40570c]
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
test ecx, ecx
jle case.default.0x4052e9
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
test ecx, ecx
jle 0x405349
mov eax, dword [esi + 0xac]
mov edx, dword [esp + 0x48]
mov ecx, dword [esi + 0xb0]
push 0xcc0020
push 0
push 0
push edx
push ecx
push eax
mov eax, dword [esp + 0x50]
push ebx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 0xac]
sub ecx, dword [esp + 0x24]
add edi, eax
cmp edi, ecx
jl 0x405312
mov edx, dword [esp + 0x30]
add ebx, dword [esi + 0xb0]
sub edx, dword [esp + 0x28]
xor edi, edi
cmp ebx, edx
jl 0x405308
jmp case.default.0x4052e9
mov edi, dword [esi + 0xb0]
mov ecx, dword [esp + 0x30]
mov edx, dword [esi + 0xac]
mov eax, dword [esp + 0x2c]
push 0xcc0020
push 0
push 0
sub ecx, edi
sub ecx, dword [esp + 0x34]
lea ebx, [esp + 0x50]
push ebx
push edi
sub eax, edx
shr ecx, 1
push edx
jmp 0x405641
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0xac]
push 0xcc0020
push eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
push 0
push 0
lea edx, [esp + 0x58]
push edx
push eax
push ecx
push 0
push 0
lea ecx, [esp + 0x5c]
call fcn.00404500
jmp case.default.0x4052e9
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x24]
test edx, edx
jle case.default.0x4052e9
mov eax, dword [esi + 0xac]
jmp 0x4053f0
mov edx, dword [esp + 0x48]
mov ecx, dword [esi + 0xb0]
push 0xcc0020
push 0
push 0
push edx
push ecx
push eax
mov eax, dword [esp + 0x50]
push 0
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 0xac]
sub ecx, dword [esp + 0x24]
add edi, eax
cmp edi, ecx
jl 0x4053f0
jmp case.default.0x4052e9
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x24]
test edx, edx
jle case.default.0x4052e9
mov ecx, dword [esi + 0xac]
jmp 0x405450
mov ebx, dword [esp + 0x48]
mov edx, dword [esi + 0xb0]
mov eax, dword [esp + 0x30]
push 0xcc0020
push 0
push 0
push ebx
push edx
push ecx
sub eax, edx
push eax
mov eax, dword [esp + 0x54]
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esi + 0xac]
sub edx, dword [esp + 0x24]
add edi, ecx
cmp edi, edx
jl 0x405450
jmp case.default.0x4052e9
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
test eax, eax
jle case.default.0x4052e9
mov eax, dword [esi + 0xb0]
jmp 0x4054b0
mov edx, dword [esp + 0x48]
mov ecx, dword [esi + 0xac]
push 0xcc0020
push 0
push 0
push edx
push eax
mov eax, dword [esp + 0x4c]
push ecx
push ebx
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 0xb0]
sub ecx, dword [esp + 0x28]
add ebx, eax
cmp ebx, ecx
jl 0x4054b0
jmp case.default.0x4052e9
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x28]
test edx, edx
jle case.default.0x4052e9
mov ecx, dword [esi + 0xb0]
jmp 0x405510
mov edi, dword [esp + 0x48]
mov edx, dword [esi + 0xac]
mov eax, dword [esp + 0x2c]
push 0xcc0020
push 0
push 0
push edi
push ecx
push edx
sub eax, edx
push ebx
push eax
mov eax, dword [esp + 0x58]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 0xb0]
sub edx, dword [esp + 0x28]
add ebx, ecx
cmp ebx, edx
jl 0x405510
jmp case.default.0x4052e9
mov ecx, dword [esi + 0xb0]
mov edx, dword [esi + 0xac]
push 0xcc0020
push 0
push 0
lea eax, [esp + 0x50]
push eax
push ecx
push edx
push 0
push 0
jmp 0x405649
mov edx, dword [esi + 0xb0]
mov eax, dword [esi + 0xac]
push 0xcc0020
push 0
push 0
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push eax
push 0
sub ecx, eax
push ecx
jmp 0x405649
mov ecx, dword [esi + 0xac]
mov eax, dword [esp + 0x2c]
push 0xcc0020
push 0
push 0
lea edx, [esp + 0x50]
push edx
mov edx, dword [esi + 0xb0]
push edx
push ecx
sub eax, ecx
push 0
jmp 0x405642
mov eax, dword [esi + 0xb0]
mov edx, dword [esi + 0xac]
push 0xcc0020
push 0
push 0
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x40]
push eax
push edx
sub ecx, eax
push ecx
push 0
jmp 0x405649
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0xac]
push 0xcc0020
push 0
push 0
lea edx, [esp + 0x50]
push edx
mov edx, dword [esp + 0x40]
push eax
sub edx, eax
mov eax, dword [esp + 0x40]
push ecx
push edx
sub eax, ecx
jmp 0x405648
mov edx, dword [esi + 0xb0]
mov ecx, dword [esi + 0xac]
mov eax, dword [esp + 0x2c]
push 0xcc0020
push 0
push 0
lea edi, [esp + 0x50]
push edi
push edx
sub eax, ecx
push ecx
mov ecx, dword [esp + 0x48]
sub ecx, edx
push ecx
sub eax, dword [esp + 0x40]
shr eax, 1
push eax
lea ecx, [esp + 0x54]
call fcn.00401f60
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
push 0xcc0020
push 0
push 0
push edx
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [eax + 4]
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esi]
mov edx, dword [edx + 0x164]
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4056af
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x38]
push eax
push edx
call fcn.0045636f
lea ecx, [esp + 0x44]
mov byte [esp + 0x60], 1
call fcn.0045608d
mov byte [esp + 0x60], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.CBitmap.0
call fcn.00401ae0
lea ecx, [esp + 0x34]
mov dword [esp + 0x60], 0xffffffff
call fcn.0045608d
mov eax, 1
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4