Function at 0x4a0ab6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x22c], eax
xor esi, esi
mov eax, dword [ebp + 0x20]
mov edi, esi
push 0x20a
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x210]
push esi
push eax
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], esi
call fcn.004f5a90
mov eax, dword [ebp - 0x230]
add esp, 0xc
test eax, eax
je 0x4a0b42
push 0x104
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x210]
push eax
call fcn.004e5a3d
mov edi, eax
pop ecx
test edi, edi
je 0x4a0b42
push 0x55b960
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
test ebx, ebx
je 0x4a0b61
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00451990
pop ecx
pop ecx
test al, al
je 0x4a0b61
xor eax, eax
inc eax
jmp 0x4a0d4e
push dword [ebp + 0x24]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x22c]
call fcn.004a0d7f
add esp, 0x20
test eax, eax
je 0x4a0d4e
mov ebx, dword [ebp - 0x224]
cmp word [ebp - 0x210], si
jne 0x4a0cc2
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x214]
xor edx, edx
push eax
movzx eax, word [ebp - 0x216]
push eax
movzx eax, word [ebp - 0x218]
push eax
movzx eax, word [ebp - 0x21a]
push eax
movzx eax, word [ebp - 0x21e]
push eax
movzx eax, word [ebp - 0x220]
push 0x64
pop ecx
div ecx
lea eax, [ebp - 0x210]
push edx
push str._02u_02u_02u_02u_02u_02u
push eax
call fcn.004a0a9d
push 0x58
pop edi
push edi
lea eax, [ebp - 0x288]
push esi
push eax
call fcn.004f5a90
add esp, 0x2c
mov dword [ebp - 0x288], edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
mov dword [ebp - 0x224], esi
test edi, edi
je 0x4a0c36
lea eax, [ebp - 0x224]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x224], eax
lea eax, [ebp - 0x210]
mov ecx, dword [0x5a22a4]
mov dword [ebp - 0x26c], eax
cmove ecx, edi
lea eax, [ebp - 0x288]
mov dword [ebp - 0x284], ecx
push eax
mov dword [ebp - 0x27c], str.PNG__.png_
mov dword [ebp - 0x24c], 0x55ba14
mov dword [ebp - 0x270], 1
mov dword [ebp - 0x268], 0x105
mov dword [ebp - str.k_C_f_], str.Save_screenshot
mov dword [ebp - 0x254], 0x88080e
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x4a0cbd
lea eax, [ebp - 0x210]
push eax
call fcn.004e5a3d
mov edi, eax
pop ecx
test edi, edi
jne 0x4a0cc2
xor esi, esi
inc esi
jmp 0x4a0d41
push dword [ebp - 0x228]
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00451875
add esp, 0xc
test al, al
jne 0x4a0cbd
test ebx, ebx
je 0x4a0d4c
cmp dword [ebp - 0x228], esi
je 0x4a0d41
test edi, edi
je 0x4a0d41
push 0x55b960
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a0d41
push esi
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], esi
push eax
push dword [ebp - 0x228]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4a0d4c
push ebx
call fcn.004e1bea
pop ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret