Function at 0x4a1ee0
Capabilities:
Create directory
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
push edi
push 0
mov ecx, 0x706b10
call fcn.0055dfc0
push 0
push str.ScreenShot
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], 0
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str.ini_ScreenShot.cnt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
je 0x4a2047
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 4]
push 0
push eax
push 2
lea eax, [ebp - 0xc]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0x24]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0x14]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0x20]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0x18]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0x1c]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 8]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x6bf580]
cmp word [ebp - 0xc], ax
jne 0x4a2042
mov ecx, dword [ebp - 0x24]
cmp word [ebp - 0x34], cx
jne 0x4a2042
mov edx, dword [ebp - 0x14]
cmp word [ebp - 0x32], dx
jne 0x4a2042
mov esi, dword [ebp - 0x20]
cmp word [ebp - 0x2e], si
jne 0x4a2042
mov edi, dword [ebp - 0x18]
cmp word [ebp - 0x2c], di
jne 0x4a2042
mov ebx, dword [ebp - 0x1c]
cmp word [ebp - 0x2a], bx
jne 0x4a2042
mov ax, word [ebp - 0x28]
cmp ax, word [ebp - 0x10]
je 0x4a2082
mov eax, dword [0x6bf580]
movzx eax, ax
jmp 0x4a204e
movzx eax, word [0x6bf580]
movzx ebx, word [ebp - 0x2a]
movzx edi, word [ebp - 0x2c]
movzx esi, word [ebp - 0x2e]
movzx edx, word [ebp - 0x32]
movzx ecx, word [ebp - 0x34]
mov dword [ebp - 0xc], eax
movzx eax, word [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], 1
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 8]
movzx eax, ax
push eax
mov eax, dword [ebp - 0x10]
movzx eax, ax
push eax
movzx eax, bx
push eax
movzx eax, di
push eax
movzx eax, si
push eax
movzx eax, dx
push eax
movzx eax, cx
mov ecx, 0x64
cdq
idiv ecx
mov eax, dword [ebp - 0xc]
push edx
movzx eax, ax
push eax
lea eax, [ebp - 0x134]
push str.ScreenShot_DarkStory__02d__02d_02d_02d__02d_02d_02d__03d.jpg
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
mov eax, dword [0x7040b8]
add esp, 0x28
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
lea edx, [ebp - 0x134]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe8]
test eax, eax
je 0x4a21c3
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push str.ini_ScreenShot.cnt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a219b
inc dword [ebp - 8]
lea eax, [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push eax
push 2
lea eax, [ebp - 0xc]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0x24]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0x14]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0x20]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0x18]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0x1c]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 8]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x134]
mov ecx, 0x6db090
push eax
push 0xc9
call fcn.004e9380
push eax
push 0x17
push 0x6db090
call fcn.004e8b40
add esp, 0x10
jmp 0x4a21e2
push 0xc8
mov ecx, 0x6db090
call fcn.004e9380
push eax
push 0x17
push 0x6db090
call fcn.004e8b40
add esp, 0xc
push 0
lea eax, [ebp - 0x134]
push eax
push 0x11
call dword [sym.imp.FreeImage.dll__FreeImage_Load_12]
mov esi, eax
test esi, esi
je 0x4a2245
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x134]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a2210
sub ecx, edx
lea eax, [ebp - 0x134]
push 0x80
push eax
push esi
mov word [ebp + ecx - 0x137], 0x706a
mov byte [ebp + ecx - 0x135], 0x67
call dword [sym.imp.FreeImage.dll__FreeImage_SaveJPEG_12]
push esi
call dword [sym.imp.FreeImage.dll__FreeImage_Unload_4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret