Function at 0x4a0f90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push ebx
push esi
xor ebx, ebx
push 0x20a
lea eax, [ebp - 0x280]
push ebx
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
xor esi, esi
call fcn.004c9b50
mov eax, dword [ebp + 0x20]
add esp, 0xc
cmp eax, ebx
je 0x4a0ff8
push 0x104
push eax
lea ecx, [ebp - 0x280]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea edx, [ebp - 0x280]
push edx
call fcn.004c62f0
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4a0ff8
push str..png
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4a101e
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.00443780
add esp, 8
test al, al
je 0x4a101e
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x24]
push ecx
mov ecx, dword [ebp + 0x1c]
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp + 0x18]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.004a0db0
add esp, 0x20
test eax, eax
jne 0x4a1050
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
cmp word [ebp - 0x280], bx
jne 0x4a1145
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x10]
movzx edx, word [ebp - 0x12]
movzx eax, word [ebp - 0x14]
push ecx
movzx ecx, word [ebp - 0x16]
push edx
movzx edx, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1c]
push ecx
push edx
cdq
mov ecx, 0x64
idiv ecx
push edx
lea edx, [ebp - 0x280]
push str._02u_02u_02u_02u_02u_02u
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x58
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.004c9b50
add esp, 0x2c
mov dword [ebp - 0x74], 0x58
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov dword [ebp + 0x20], ebx
cmp esi, ebx
je 0x4a10d0
lea ecx, [ebp + 0x20]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp + 0x20], eax
jne 0x4a10e0
mov dword [ebp - 0x70], esi
jmp 0x4a10e9
mov edx, dword [0x52fe14]
mov dword [ebp - 0x70], edx
lea ecx, [ebp - 0x74]
lea eax, [ebp - 0x280]
mov edi, 1
push ecx
mov dword [ebp - 0x68], str.PNG__.png_
mov dword [ebp - 0x38], 0x503400
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], 0x105
mov dword [ebp - 0x44], str.Save_screenshot
mov dword [ebp - 0x40], 0x88080e
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x4a1140
lea edx, [ebp - 0x280]
push edx
call fcn.004c62f0
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x4a1145
mov dword [ebp - 8], edi
jmp 0x4a11c4
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
push edi
push eax
lea ecx, [ebp - 0x280]
push ecx
call fcn.00443c90
add esp, 0xc
test al, al
je 0x4a1169
mov dword [ebp - 8], 1
jmp 0x4a11c4
cmp dword [ebp - 4], ebx
je 0x4a11d4
cmp edi, ebx
je 0x4a11c4
cmp esi, ebx
je 0x4a11c4
push str..png
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
lea edx, [ebp - 0x280]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4a11c4
mov ecx, dword [ebp - 4]
push ebx
lea eax, [ebp + 0x20]
push eax
push edi
push ecx
push esi
mov dword [ebp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x4a11d4
push eax
call fcn.0044c4f0
add esp, 4
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret