Function at 0x47918d
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 [0x6a2c70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x6f4fe0
push ebx
call fcn.005239f5
push ebx
push str.ScreenShot
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x114]
mov dword [ebp - 0x120], ebx
push eax
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push str.ini_ScreenShot.cnt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x118], ebx
cmp edi, 0xffffffff
je 0x47934e
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x118]
push ebx
push eax
push 2
lea eax, [ebp - 0x120]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x124]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x130]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x128]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x138]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x134]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x12c]
push eax
push edi
call esi
push ebx
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 ecx, dword [0x6ad828]
cmp word [ebp - 0x120], cx
jne 0x479349
mov ax, word [ebp - 0x114]
cmp ax, word [ebp - 0x124]
jne 0x479349
mov ebx, dword [ebp - 0x130]
cmp word [ebp - 0x112], bx
jne 0x479349
mov edi, dword [ebp - 0x128]
cmp word [ebp - 0x10e], di
jne 0x479349
mov esi, dword [ebp - 0x138]
cmp word [ebp - 0x10c], si
jne 0x479349
mov edx, dword [ebp - 0x134]
cmp word [ebp - 0x10a], dx
jne 0x479349
mov ecx, dword [ebp - 0x12c]
cmp word [ebp - 0x108], cx
jne 0x479343
mov eax, dword [ebp - 0x11c]
jmp 0x4793b2
mov ecx, dword [0x6ad828]
movzx eax, cx
jmp 0x479355
movzx eax, word [0x6ad828]
movzx ecx, word [ebp - 0x108]
movzx edx, word [ebp - 0x10a]
movzx esi, word [ebp - 0x10c]
movzx edi, word [ebp - 0x10e]
movzx ebx, word [ebp - 0x112]
mov dword [ebp - 0x120], eax
movzx eax, word [ebp - 0x114]
mov dword [ebp - 0x124], eax
xor eax, eax
inc eax
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x130], ebx
movzx eax, ax
push eax
movzx eax, cx
push eax
movzx eax, dx
push eax
movzx eax, si
push eax
movzx eax, di
push eax
movzx eax, bx
push eax
mov eax, dword [ebp - 0x124]
movzx eax, ax
push 0x64
pop ecx
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 fcn.00550fcb
mov eax, dword [0x6f25b0]
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 0x47951b
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push str.ini_ScreenShot.cnt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4794f5
inc dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push eax
push 2
lea eax, [ebp - 0x120]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x124]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x130]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x128]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x138]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x134]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x12c]
push eax
push edi
call esi
push ebx
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 esi, 0x6c93c8
push eax
push 0xc9
mov ecx, esi
call fcn.004be778
push eax
push 0x17
push esi
call fcn.004bdea6
add esp, 0x10
jmp 0x47953a
mov esi, 0x6c93c8
push 0xc8
mov ecx, esi
call fcn.004be778
push eax
push 0x17
push esi
call fcn.004bdea6
add esp, 0xc
xor ebx, ebx
push ebx
lea eax, [ebp - 0x104]
push eax
push 0x11
call dword [sym.imp.FreeImage.dll__FreeImage_Load_12]
mov esi, eax
test esi, esi
je 0x47959b
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 0x479566
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.0054ee82
mov esp, ebp
pop ebp
ret