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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x6a78d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov ecx, 0x6a73e8
call fcn.0054da40
push 0
push str.ScreenShot
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x114]
mov dword [ebp - 0x120], 0
push eax
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x124], 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 - 0x118], 0
cmp edi, 0xffffffff
je 0x489bd6
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x118]
push 0
push eax
push 2
lea eax, [ebp - 0x120]
push eax
push edi
call esi
push 0
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x130]
push eax
push edi
call esi
push 0
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x128]
push eax
push edi
call esi
push 0
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x138]
push eax
push edi
call esi
push 0
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x134]
push eax
push edi
call esi
push 0
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x12c]
push eax
push edi
call esi
push 0
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x124]
push eax
push edi
call esi
push 0
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x11c]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x6b9eb0]
cmp word [ebp - 0x120], ax
jne 0x489bd1
mov ecx, dword [ebp - 0x130]
cmp word [ebp - 0x114], cx
jne 0x489bd1
mov edx, dword [ebp - 0x128]
cmp word [ebp - 0x112], dx
jne 0x489bd1
mov esi, dword [ebp - 0x138]
cmp word [ebp - 0x10e], si
jne 0x489bd1
mov edi, dword [ebp - 0x134]
cmp word [ebp - 0x10c], di
jne 0x489bd1
mov ebx, dword [ebp - 0x12c]
cmp word [ebp - 0x10a], bx
jne 0x489bd1
mov ax, word [ebp - 0x108]
cmp ax, word [ebp - 0x124]
je 0x489c3b
mov eax, dword [0x6b9eb0]
movzx eax, ax
jmp 0x489bdd
movzx eax, word [0x6b9eb0]
movzx ebx, word [ebp - 0x10a]
movzx edi, word [ebp - 0x10c]
movzx esi, word [ebp - 0x10e]
movzx edx, word [ebp - 0x112]
movzx ecx, word [ebp - 0x114]
mov dword [ebp - 0x120], eax
movzx eax, word [ebp - 0x108]
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x11c], 1
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x130], ecx
mov eax, dword [ebp - 0x11c]
movzx eax, ax
push eax
mov eax, dword [ebp - 0x124]
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 - 0x120]
push edx
movzx eax, ax
push eax
lea eax, [ebp - 0x104]
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 [0x6f53e8]
add esp, 0x28
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
lea edx, [ebp - 0x104]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe8]
test eax, eax
je 0x489db8
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 0x489d90
inc dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push eax
push 2
lea eax, [ebp - 0x120]
push eax
push edi
call esi
push 0
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x130]
push eax
push edi
call esi
push 0
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x128]
push eax
push edi
call esi
push 0
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x138]
push eax
push edi
call esi
push 0
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x134]
push eax
push edi
call esi
push 0
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x12c]
push eax
push edi
call esi
push 0
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x124]
push eax
push edi
call esi
push 0
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x11c]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x104]
mov ecx, 0x6d43a8
push eax
push 0xc9
call fcn.004d43c0
push eax
push 0x17
push 0x6d43a8
call fcn.004d3a00
add esp, 0x10
jmp 0x489dd7
push 0xc8
mov ecx, 0x6d43a8
call fcn.004d43c0
push eax
push 0x17
push 0x6d43a8
call fcn.004d3a00
add esp, 0xc
push 0
lea eax, [ebp - 0x104]
push eax
push 0x11
call dword [sym.imp.FreeImage.dll__FreeImage_Load_12]
mov esi, eax
test esi, esi
je 0x489e39
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x104]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x489e04
sub ecx, edx
lea eax, [ebp - 0x104]
push 0x80
push eax
push esi
mov word [ebp + ecx - 0x107], 0x706a
mov byte [ebp + ecx - 0x105], 0x67
call dword [sym.imp.FreeImage.dll__FreeImage_SaveJPEG_12]
push esi
call dword [sym.imp.FreeImage.dll__FreeImage_Unload_4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00574cc2
mov esp, ebp
pop ebp
ret