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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x23c
cmp eax, 0x28
ja case.default.0x4c4f58
push ebx
push esi
push edi
jmp dword [eax*4 + 0x4c5878]
push 0
mov ecx, 0x6d70c0
call fcn.004bef20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
mov ecx, 0x6d70c0
call fcn.004bef20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 2
mov ecx, 0x6d70c0
call fcn.004bef20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 3
mov ecx, 0x6d70c0
call fcn.004bef20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 4
mov ecx, 0x6d70c0
call fcn.004bef20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 5
mov ecx, 0x6d70c0
call fcn.004bef20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 6
mov ecx, 0x6d70c0
call fcn.004bef20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 7
mov ecx, 0x6d70c0
call fcn.004bef20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 8
mov ecx, 0x6d70c0
call fcn.004bef20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 9
mov ecx, 0x6d70c0
call fcn.004bef20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6c8338]
push 0
call fcn.00465730
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6c8338]
push 1
call fcn.00465730
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6c8338]
push 2
call fcn.00465730
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6c8338]
push 3
call fcn.00465730
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6c82ec]
push 3
call fcn.00448f30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6c82ec]
push 2
call fcn.00448f30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6c82ec]
push 4
call fcn.00448f30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6c82ec]
push 7
call fcn.00448f30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6c82ec]
push 5
call fcn.00448f30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, 0x6d5870
call fcn.0043f5f0
test eax, eax
jne case.0x4c4f58.20
mov ecx, dword [0x6c82ec]
push 0xb
call fcn.00448f30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6c82ec]
push 0xa
call fcn.00448f30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6c82ec]
push 8
call fcn.00448f30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6c82ec]
push 9
call fcn.00448f30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, 0x6d7320
call fcn.004c2260
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, 0x6e61b4
call fcn.00519aa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6c82ec]
push 1
call fcn.00448f30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6c82ec]
push 6
call fcn.00448f30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, 0x7034c0
call fcn.00548270
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor ebx, ebx
push ebx
mov ecx, 0x703de8
call fcn.00555170
push ebx
push str.ScreenShot
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push 0x5a50c0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
je 0x4c52f9
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp - 4]
push ecx
push 2
lea edx, [ebp - 0x24]
push edx
push esi
call edi
push ebx
lea eax, [ebp - 4]
push eax
push 2
lea ecx, [ebp - 0x10]
push ecx
push esi
call edi
push ebx
lea edx, [ebp - 4]
push edx
push 2
lea eax, [ebp - 0x14]
push eax
push esi
call edi
push ebx
lea ecx, [ebp - 4]
push ecx
push 2
lea edx, [ebp - 0x20]
push edx
push esi
call edi
push ebx
lea eax, [ebp - 4]
push eax
push 2
lea ecx, [ebp - 0x18]
push ecx
push esi
call edi
push ebx
lea edx, [ebp - 4]
push edx
push 2
lea eax, [ebp - 0x1c]
push eax
push esi
call edi
push ebx
lea ecx, [ebp - 4]
push ecx
push 2
lea edx, [ebp - 0xc]
push edx
push esi
call edi
push ebx
lea eax, [ebp - 4]
push eax
push 2
lea ecx, [ebp - 8]
push ecx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x24]
mov bx, word [ebp - 0x28]
cmp cx, word [0x6c77bc]
jne 0x4c52ed
mov dx, word [ebp - 0x34]
cmp dx, word [ebp - 0x10]
jne 0x4c52ed
mov ax, word [ebp - 0x32]
cmp ax, word [ebp - 0x14]
jne 0x4c52ed
mov edi, dword [ebp - 0x20]
cmp word [ebp - 0x2e], di
jne 0x4c52ed
mov esi, dword [ebp - 0x18]
cmp word [ebp - 0x2c], si
jne 0x4c52ed
mov edx, dword [ebp - 0x1c]
cmp word [ebp - 0x2a], dx
jne 0x4c52ed
mov eax, dword [ebp - 0xc]
cmp bx, ax
je 0x4c5334
movzx eax, word [ebp - 0x32]
mov dword [ebp - 0x14], eax
movzx eax, bx
jmp 0x4c5304
movzx eax, word [ebp - 0x32]
mov dword [ebp - 0x14], eax
movzx eax, word [ebp - 0x28]
movzx edx, word [ebp - 0x34]
movzx esi, word [ebp - 0x2c]
movzx edi, word [ebp - 0x2e]
movzx ecx, word [0x6c77bc]
mov dword [ebp - 0x10], edx
movzx edx, word [ebp - 0x2a]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], 1
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ecx
movzx ebx, word [ebp - 8]
push ebx
movzx eax, ax
push eax
movzx edx, dx
push edx
movzx eax, si
push eax
movzx eax, word [ebp - 0x14]
movzx edx, di
push edx
push eax
movzx eax, word [ebp - 0x10]
cdq
mov esi, 0x64
idiv esi
movzx ecx, cx
push edx
push ecx
lea edx, [ebp - 0x13c]
push str.ScreenShot_DarkStory__02d__02d_02d_02d__02d_02d_02d__03d.jpg
push edx
call fcn.0056ecd0
movzx eax, word [ebp - 8]
movzx ecx, word [ebp - 0xc]
movzx edx, word [ebp - 0x1c]
push eax
movzx eax, word [ebp - 0x18]
push ecx
movzx ecx, word [ebp - 0x20]
push edx
movzx edx, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x10]
push ecx
push edx
cdq
mov ecx, esi
idiv ecx
lea eax, [ebp - 0x23c]
push edx
movzx edx, word [ebp - 0x24]
push edx
push str.ScreenShot_DarkStory__02d__02d_02d_02d__02d_02d_02d__03d.txt
push eax
call fcn.0056ecd0
mov eax, dword [0x7012dc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
add esp, 0x50
push eax
call edx
mov ecx, dword [eax]
lea edx, [ebp - 0x13c]
push edx
push eax
mov eax, dword [ecx + 0xe8]
call eax
test eax, eax
je 0x4c54b0
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 esi, eax
cmp esi, 0xffffffff
je 0x4c5488
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
inc dword [ebp - 8]
push 0
lea ecx, [ebp - 4]
push ecx
push 2
lea edx, [ebp - 0x24]
push edx
push esi
call edi
push 0
lea eax, [ebp - 4]
push eax
push 2
lea ecx, [ebp - 0x10]
push ecx
push esi
call edi
push 0
lea edx, [ebp - 4]
push edx
push 2
lea eax, [ebp - 0x14]
push eax
push esi
call edi
push 0
lea ecx, [ebp - 4]
push ecx
push 2
lea edx, [ebp - 0x20]
push edx
push esi
call edi
push 0
lea eax, [ebp - 4]
push eax
push 2
lea ecx, [ebp - 0x18]
push ecx
push esi
call edi
push 0
lea edx, [ebp - 4]
push edx
push 2
lea eax, [ebp - 0x1c]
push eax
push esi
call edi
push 0
lea ecx, [ebp - 4]
push ecx
push 2
lea edx, [ebp - 0xc]
push edx
push esi
call edi
push 0
lea eax, [ebp - 4]
push eax
push 2
lea ecx, [ebp - 8]
push ecx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x13c]
push edx
push 0xc9
mov ecx, 0x6d8178
call fcn.004ca5b0
push eax
push 0x1d
push 0x6d8178
call fcn.004cb820
add esp, 0x10
jmp 0x4c54cf
push 0xc8
mov ecx, 0x6d8178
call fcn.004ca5b0
push eax
push 0x1d
push 0x6d8178
call fcn.004cb820
add esp, 0xc
push 0
lea eax, [ebp - 0x13c]
push eax
push 0x11
call dword [sym.imp.FreeImage.dll__FreeImage_Load_12]
mov esi, eax
test esi, esi
je case.0x4c4f58.20
lea ecx, [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x13c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c5500
sub eax, edx
push 0x80
lea edx, [ebp - 0x13c]
lea eax, [ebp + eax - 0x13c]
push edx
push esi
mov word [eax - 3], 0x706a
mov byte [eax - 1], 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 4
push 1
mov ecx, 0x6d6178
call fcn.00499e40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
mov ecx, 0x6d6178
call fcn.00499e40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x6c82e8]
test eax, eax
je case.0x4c4f58.20
mov eax, dword [eax + 0x96dc]
test eax, eax
je case.0x4c4f58.20
cmp dword [eax + 0x20], 0
je case.0x4c4f58.20
push 1
mov ecx, 0x6d8178
call fcn.004ca870
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x6c82e8]
test eax, eax
je case.0x4c4f58.20
mov eax, dword [eax + 0x96dc]
test eax, eax
je case.0x4c4f58.20
cmp dword [eax + 0x20], 0
je case.0x4c4f58.20
push 0
mov ecx, 0x6d8178
call fcn.004ca870
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6c83a0]
test ecx, ecx
je case.0x4c4f58.20
mov eax, dword [ecx]
mov eax, dword [eax + 8]
xor edx, edx
cmp dword [ecx + 0x10], edx
sete dl
push edx
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x6d617c]
cmp dword [eax + 0x31c], 0
jne case.0x4c4f58.20
cmp dword [eax + 0x404], 0
jne case.0x4c4f58.20
mov ecx, 0x6e4668
call fcn.00500cb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [0x7034d8], 4
je case.0x4c4f58.20
mov ecx, dword [0x6c84e4]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [0x7034d8], 4
je case.0x4c4f58.20
mov cx, word [ecx + 0xbc4]
mov edx, dword [0x6c84e4]
mov word [edx + 0x258], cx
mov ecx, dword [0x6c84e4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 1
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6d617c]
mov eax, 1
cmp dword [ecx + 0x404], eax
jne case.0x4c4f58.20
mov ecx, dword [0x6c82d0]
mov edx, dword [ecx]
cmp dword [ecx + 0x10], eax
je 0x4c5649
push eax
mov eax, dword [edx + 8]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ax, word [0x70310c]
cmp ax, 5
je case.0x4c4f58.20
cmp ax, 0x36
je case.0x4c4f58.20
movzx esi, ax
call fcn.00404290
mov dword [eax + 0x230], esi
call fcn.00404290
xor ecx, ecx
xor ebx, ebx
cmp dword [eax + 0xec], ebx
sete cl
mov esi, ecx
call fcn.00404290
mov dword [eax + 0xec], esi
call fcn.00404290
cmp dword [eax + 0xec], ebx
je 0x4c580f
call fcn.00404290
cmp dword [eax + 0x180], ebx
je 0x4c57b9
mov esi, dword [0x6d617c]
mov edi, dword [esi]
call fcn.00404290
mov edx, dword [edi + 0x88]
add eax, 0xe0
push eax
mov ecx, esi
call edx
call fcn.00404290
fld dword [eax + 0xe0]
fdiv qword [0x5956f0]
fnstcw word [ebp + 0xa]
movzx eax, word [ebp + 0xa]
or eax, 0xc00
mov dword [ebp - 0xc], eax
fldcw word [ebp - 0xc]
fistp qword [ebp - 0x3c]
mov esi, dword [ebp - 0x3c]
fldcw word [ebp + 0xa]
call fcn.00404290
mov dword [eax + 0x228], esi
call fcn.00404290
fld dword [eax + 0xe8]
fdiv qword [0x5956f0]
fnstcw word [ebp + 0xa]
movzx eax, word [ebp + 0xa]
or eax, 0xc00
mov dword [ebp - 0x38], eax
fldcw word [ebp - 0x38]
fistp qword [ebp - 0x3c]
mov esi, dword [ebp - 0x3c]
fldcw word [ebp + 0xa]
call fcn.00404290
mov dword [eax + 0x22c], esi
push 0x9af
mov ecx, 0x6d8178
call fcn.004ca5b0
push eax
push 0x32
push 0x6d8178
call fcn.004cb820
movzx esi, word [0x70310c]
add esp, 0xc
call fcn.00404290
mov dword [eax + 0x230], esi
call fcn.00404290
mov dword [eax + 0x1d80], ebx
call fcn.00404290
mov dword [eax + 0x1d84], ebx
mov ecx, dword [0x6c859c]
cmp dword [ecx + 0x10], ebx
je 0x4c5863
push 1
jmp 0x4c5850
push 0x9b0
mov ecx, 0x6d8178
call fcn.004ca5b0
push eax
push 0x32
push 0x6d8178
call fcn.004cb820
add esp, 0xc
call fcn.00404290
mov dword [eax + 0x1d80], ebx
call fcn.00404290
mov dword [eax + 0x1d84], ebx
mov ecx, dword [0x6c859c]
cmp dword [ecx + 0x10], ebx
je 0x4c5863
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 0x60]
push 0x3e0
call edx
mov ecx, eax
call fcn.00431100
call fcn.00404290
mov ecx, eax
call fcn.00401490
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4