Function at 0x457da4
Capabilities:
Capture screenshot

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x500144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xb0], eax
xor ecx, ecx
push edi
mov dword [ebp - 0xa0], ecx
mov edi, ecx
mov eax, dword [esi + 0x1c]
mov ebx, ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x98], ecx
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x78], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x74], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x457e51
test byte [eax + 0x1c], 1
je 0x457e51
cmp byte [eax + 0x19], 4
jb 0x457e51
call fcn.0042386b
push dword [ebp - 0x74]
mov edx, 0x40e258
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.00429408
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x457ea3
movzx edx, cx
mov ecx, dword [esi + 8]
call fcn.004916bc
mov dword [ebp - 0x88], eax
test eax, eax
je 0x457ea3
push 0x54
lea eax, [ebp - 0x70]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x88]
push 0x54
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x457ea3
mov ebx, dword [ebp - 0x68]
test ebx, ebx
jns 0x457e9a
neg ebx
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x457f04
mov ecx, dword [esi + 8]
movzx edx, ax
call fcn.004916bc
mov dword [ebp - 0x98], eax
test eax, eax
je 0x457f04
push 0x54
lea eax, [ebp - 0x70]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x98]
push 0x54
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x457f04
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x90], eax
test eax, eax
jns 0x457efb
neg eax
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x457f5a
mov ecx, dword [esi + 8]
movzx edx, ax
call fcn.004916bc
mov dword [ebp - 0x8c], eax
test eax, eax
je 0x457f5a
push 0x54
lea eax, [ebp - 0x70]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
push 0x54
push dword [ebp - 0x8c]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x457f5a
mov edi, dword [ebp - 0x68]
test edi, edi
jns 0x457f4f
neg edi
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x84], edx
jmp 0x457f5c
mov edx, edi
mov eax, dword [ebp - 0x90]
mov ecx, eax
cmp eax, edi
jg 0x457f6a
mov ecx, edi
cmp ebx, ecx
jg 0x457f76
mov ebx, eax
cmp eax, edi
jg 0x457f76
mov ebx, edi
mov edi, dword [ebp - 0x9c]
add edi, edx
add edi, dword [ebp - 0x94]
mov dword [esi + 0x2c], edi
mov eax, dword [section..data]
cmp eax, section..data
je 0x457fbe
test byte [eax + 0x1c], 1
je 0x457fbe
cmp byte [eax + 0x19], 4
jb 0x457fbe
call fcn.0042386b
push edi
push eax
mov eax, dword [section..data]
mov edx, 0x40e258
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xb
pop ecx
call fcn.00421fda
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x7c], eax
jne 0x458016
mov eax, dword [section..data]
cmp eax, section..data
je 0x45800f
test byte [eax + 0x1c], 1
je 0x45800f
cmp byte [eax + 0x19], 2
jb 0x45800f
call fcn.0042386b
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xc
mov edx, 0x40e258
pop ecx
call fcn.004238e7
xor ebx, ebx
jmp 0x458331
cmp dword [ebp + 0xc], 0
jne 0x45832e
test ebx, ebx
jle 0x458377
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowDC]
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
je 0x458267
push ebx
push dword [ebp - 0x7c]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push edi
mov dword [ebp - 0xa0], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 0x78]
mov edi, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x74], eax
test edi, edi
je 0x458259
test eax, eax
je 0x458259
xor eax, eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x88]
mov edx, eax
test eax, eax
jne 0x458094
mov edx, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x78]
call fcn.0049942f
mov dword [esi + 0xc], eax
test eax, eax
je 0x4580d2
push 0
push eax
push dword [ebp - 0x78]
call dword [sym.imp.GDI32.dll_SelectPalette]
push 0
push dword [esi + 0xc]
mov dword [ebp - 0xa4], eax
push dword [ebp - 0x74]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp - 0x78]
mov dword [ebp - 0xa8], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [ebp - 0xa0]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x458125
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
mov dword [ebp - 0x80], eax
xor eax, eax
push eax
push eax
push edi
push ebx
push dword [ebp - 0x7c]
push eax
push eax
push dword [ebp - 0x74]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x458125
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x45817e
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x7c]
xor edx, edx
sub ecx, dword [ebp - 0x84]
push 0xcc0020
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x90]
push eax
push dword [ebp - 0x9c]
push edx
push edx
push edi
push eax
mov eax, dword [ebp - 0x94]
sub ecx, eax
push ecx
push edx
push eax
push dword [ebp - 0x74]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x45817e
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x4581c2
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
xor ecx, ecx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x7c]
push ecx
push ecx
push edi
push ebx
push eax
sub eax, dword [ebp - 0x84]
push ecx
push eax
push dword [ebp - 0x74]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x4581c2
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esi + 0x30], 0
je 0x458209
push 0xc
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
push 0xc
mov dword [ebp - 0x80], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, ebx
sub ecx, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
jns 0x4581ef
xor eax, eax
push 0xb
push 0
push 0
push 0
push 0
push dword [esi + 0x30]
push eax
push dword [ebp - 0x80]
push dword [ebp - 0x74]
call dword [sym.imp.USER32.dll_DrawIconEx]
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x45821d
push eax
push dword [ebp - 0x74]
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x458233
push 1
push eax
push dword [ebp - 0x78]
call dword [sym.imp.GDI32.dll_SelectPalette]
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x458249
push 1
push eax
push dword [ebp - 0x78]
call dword [sym.imp.GDI32.dll_SelectPalette]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x74]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x78]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x4582ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x4582ad
test byte [ecx + 0x1c], 8
je 0x4582ad
cmp byte [ecx + 0x19], 2
jb 0x4582ad
call fcn.0042386b
push edi
push 0x40e234
push eax
mov eax, dword [section..data]
mov edx, 0x40e258
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xd
pop ecx
call fcn.0042371b
mov edi, dword [ebp - 0x7c]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ebx
mov eax, dword [section..data]
cmp eax, section..data
je 0x4582f3
test byte [eax + 0x1c], 1
je 0x4582f3
cmp byte [eax + 0x19], 4
jb 0x4582f3
call fcn.0042386b
push ebx
push edi
push eax
mov eax, dword [section..data]
mov edx, 0x40e258
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xe
pop ecx
call fcn.00429397
mov eax, dword [section..data]
mov ebx, dword [ebp - 0xa0]
test ebx, ebx
je 0x45837c
mov ecx, dword [ebp - 0xb0]
test ecx, ecx
je 0x45831c
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x458313
mov dword [ecx], eax
push ecx
push ebx
mov ecx, esi
call fcn.004583b9
cmp dword [esi + 0x28], 0
je 0x45832b
push dword [esi + 0x28]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x28], ebx
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x458342
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x458353
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x458364
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fb5e0
leave
ret 8
mov eax, dword [section..data]
cmp eax, section..data
je 0x45800f
test byte [eax + 0x1c], 1
je 0x45800f
cmp byte [eax + 0x19], 2
jb 0x45800f
call fcn.0042386b
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xf
jmp 0x458004