Function at 0x419610
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x4545c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
mov dword [ebp - 0x444], eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4c
mov dword [ebp - 0x42c], eax
call esi
push 0x4d
mov dword [ebp - 0x43c], eax
call esi
push 0x4e
mov dword [ebp - 0x428], eax
call esi
mov edi, eax
push 0x4f
mov dword [ebp - 0x448], edi
call esi
mov esi, eax
xor eax, eax
xor ecx, ecx
push 0x28
mov dword [ebp - 0x430], esi
mov word [ebp - 0x424], cx
mov dword [ebp - 0x422], eax
mov dword [ebp - 0x41e], eax
mov dword [ebp - 0x41a], eax
call fcn.004245a0
mov ebx, eax
xor eax, eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x10], eax
lea eax, [edi + edi*2]
lea eax, [eax*8 + 0x1f]
and eax, 0xffffffe0
cdq
and edx, 7
add eax, edx
sar eax, 3
imul eax, esi
mov dword [ebx + 0x14], eax
mov dword [ebx + 8], esi
mov esi, dword [ebp - 0x42c]
mov dword [ebx], 0x28
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], 0x180001
add esp, 4
mov ecx, 0x4d42
xor eax, eax
mov word [ebp - 0x424], cx
mov edx, dword [ebx + 0x14]
push eax
add edx, 0x36
push eax
mov dword [ebp - 0x422], edx
lea edx, [ebp - 0x440]
push edx
push eax
push ebx
push esi
mov dword [ebp - 0x41e], eax
mov dword [ebp - 0x41a], 0x36
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push esi
mov dword [ebp - 0x434], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x41997f
mov eax, dword [ebp - 0x434]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x43c]
test eax, eax
jne 0x41976e
cmp dword [ebp - 0x428], eax
jne 0x41976e
mov ecx, dword [ebp - 0x42c]
mov edx, dword [ebp - 0x430]
push 0x40cc0020
push eax
push eax
push ecx
push edx
jmp 0x419789
mov ecx, dword [ebp - 0x428]
mov edx, dword [ebp - 0x42c]
push 0x40cc0020
push ecx
push eax
mov eax, dword [ebp - 0x430]
push edx
push eax
push edi
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [ebp - 0x438]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call fcn.0042c9e0
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x412]
push edx
mov word [ebp - 0x414], cx
call fcn.0042c9e0
add esp, 0x18
push 0
push 0x28
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x419800
mov ecx, dword [0x44c3bc]
mov dword [edi], ecx
xor eax, eax
jmp 0x419820
movzx ecx, word [ebp + eax - 0x20c]
mov word [ebp + eax - 0x414], cx
add eax, 2
test cx, cx
jne 0x419820
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x419841
mov ecx, 7
mov esi, 0x44e9a8
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x414]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x419864
push 0
mov ecx, 7
mov esi, str.ScreenShot.jpg
push 0x80
rep movsd dword es:[edi], dword [esi]
push 2
push 0
push 1
push 0x40000000
lea edx, [ebp - 0x20c]
push edx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4198ec
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x428]
push eax
push 0xe
lea ecx, [ebp - 0x424]
push ecx
push esi
call edi
push 0
lea edx, [ebp - 0x428]
push edx
push 0x28
push ebx
push esi
call edi
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebp - 0x440]
push 0
lea eax, [ebp - 0x428]
push eax
push ecx
push edx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 0xc]
test esi, esi
jle 0x4198f8
cmp esi, 0x64
jle 0x419902
mov dword [ebp + 0xc], 0x64
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x430]
imul eax, dword [ebp - 0x448]
cmp eax, 0xc0000
jle 0x419925
cmp esi, 0x5a
jle 0x419925
mov dword [ebp + 0xc], 0x5a
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push 0x44e9e8
push eax
call fcn.00425dbc
add esp, 8
test eax, eax
je 0x41994f
lea ecx, [ebp - 0x414]
push esi
push ecx
mov edi, eax
call fcn.004199c0
add esp, 8
lea edx, [ebp - 0x20c]
push edx
call fcn.00424664
mov edx, dword [ebp - 0x444]
lea eax, [ebp - 0x414]
mov ecx, eax
add esp, 4
sub edx, ecx
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x419970
push ebx
call fcn.004243b0
mov edx, dword [ebp - 0x434]
add esp, 4
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x42c]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004243bb
mov esp, ebp
pop ebp
ret