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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x6ac30c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x27
ja case.0x4fbd5f.20
jmp dword [eax*4 + 0x4fc6e8]
push 0
mov ecx, 0x60d9d8
call fcn.0055aca0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
push 1
mov ecx, 0x60d9d8
call fcn.0055aca0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
push 2
mov ecx, 0x60d9d8
call fcn.0055aca0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
push 3
mov ecx, 0x60d9d8
call fcn.0055aca0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
push 4
mov ecx, 0x60d9d8
call fcn.0055aca0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
push 5
mov ecx, 0x60d9d8
call fcn.0055aca0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
push 6
mov ecx, 0x60d9d8
call fcn.0055aca0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
push 7
mov ecx, 0x60d9d8
call fcn.0055aca0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
push 8
mov ecx, 0x60d9d8
call fcn.0055aca0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
push 9
mov ecx, 0x60d9d8
call fcn.0055aca0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6d426c]
push 0
call fcn.005579a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6d426c]
push 1
call fcn.005579a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6d426c]
push 2
call fcn.005579a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6d426c]
push 3
call fcn.005579a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6d4220]
push 3
call fcn.004ff650
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6d4220]
push 2
call fcn.004ff650
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6d4220]
push 4
call fcn.004ff650
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6d4220]
push 7
call fcn.004ff650
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6d4220]
push 5
call fcn.004ff650
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
mov ecx, 0x604150
call fcn.004c5ba0
test eax, eax
jne case.0x4fbd5f.20
mov ecx, dword [0x6d4220]
push 0xb
call fcn.004ff650
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6d4220]
push 0xa
call fcn.004ff650
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6d4220]
push 8
call fcn.004ff650
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6d4220]
push 9
call fcn.004ff650
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
mov ecx, 0x60d4f0
call fcn.00542ba0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
mov ecx, 0x6032a4
call fcn.004a4a30
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6d4220]
push 1
call fcn.004ff650
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x6d448c]
cmp dword [eax + 0x10], 0
jne case.0x4fbd5f.20
mov ecx, dword [0x6d4220]
push 6
call fcn.004ff650
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
mov ecx, 0x6d7430
call fcn.00505a60
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov ecx, 0x6010e0
call fcn.0045b2e0
push ebx
push str.ScreenShot
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x214]
push ecx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push ebx
push 0x80
push 3
push ebx
push ebx
push closesocket
push str.Data_ScreenShot.cnt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x218], ebx
cmp esi, 0xffffffff
je 0x4fc251
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea edx, [ebp - 0x218]
push edx
push 2
lea eax, [ebp - 0x22c]
push eax
push esi
call edi
push ebx
lea ecx, [ebp - 0x218]
push ecx
push 2
lea edx, [ebp - 0x224]
push edx
push esi
call edi
push ebx
lea eax, [ebp - 0x218]
push eax
push 2
lea ecx, [ebp - 0x220]
push ecx
push esi
call edi
push ebx
lea edx, [ebp - 0x218]
push edx
push 2
lea eax, [ebp - 0x228]
push eax
push esi
call edi
push ebx
lea ecx, [ebp - 0x218]
push ecx
push 2
lea edx, [ebp - 0x230]
push edx
push esi
call edi
push ebx
lea eax, [ebp - 0x218]
push eax
push 2
lea ecx, [ebp - 0x238]
push ecx
push esi
call edi
push ebx
lea edx, [ebp - 0x218]
push edx
push 2
lea eax, [ebp - 0x234]
push eax
push esi
call edi
push ebx
lea ecx, [ebp - 0x218]
push ecx
push 2
lea edx, [ebp - 0x21c]
push edx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x22c]
mov bx, word [ebp - 0x208]
cmp cx, word [0x6d7ab0]
jne 0x4fc23f
mov ax, word [ebp - 0x214]
cmp ax, word [ebp - 0x224]
jne 0x4fc23f
mov dx, word [ebp - 0x212]
cmp dx, word [ebp - 0x220]
jne 0x4fc23f
mov edi, dword [ebp - 0x228]
cmp word [ebp - 0x20e], di
jne 0x4fc23f
mov esi, dword [ebp - 0x230]
cmp word [ebp - 0x20c], si
jne 0x4fc23f
mov edx, dword [ebp - 0x238]
cmp word [ebp - 0x20a], dx
jne 0x4fc23f
mov eax, dword [ebp - 0x234]
cmp bx, ax
je 0x4fc2b6
movzx eax, word [ebp - 0x214]
mov dword [ebp - 0x224], eax
movzx eax, bx
jmp 0x4fc265
movzx eax, word [ebp - 0x214]
mov dword [ebp - 0x224], eax
movzx eax, word [ebp - 0x208]
movzx edx, word [ebp - 0x212]
movzx esi, word [ebp - 0x20c]
movzx edi, word [ebp - 0x20e]
movzx ecx, word [0x6d7ab0]
mov dword [ebp - 0x220], edx
movzx edx, word [ebp - 0x20a]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x21c], 1
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x22c], ecx
movzx ebx, word [ebp - 0x21c]
push ebx
movzx eax, ax
push eax
movzx edx, dx
push edx
movzx eax, si
push eax
movzx eax, word [ebp - 0x220]
movzx edx, di
push edx
push eax
movzx eax, word [ebp - 0x224]
cdq
mov esi, 0x64
idiv esi
movzx ecx, cx
push edx
push ecx
lea edx, [ebp - 0x104]
push str.ScreenShot_DarkStory__02d__02d_02d_02d__02d_02d_02d__03d.jpg
push edx
call fcn.0059a4c2
movzx eax, word [ebp - 0x21c]
movzx ecx, word [ebp - 0x234]
movzx edx, word [ebp - 0x238]
push eax
movzx eax, word [ebp - 0x230]
push ecx
movzx ecx, word [ebp - 0x228]
push edx
movzx edx, word [ebp - 0x220]
push eax
movzx eax, word [ebp - 0x224]
push ecx
push edx
cdq
mov ecx, esi
idiv ecx
lea eax, [ebp - 0x204]
push edx
movzx edx, word [ebp - 0x22c]
push edx
push str.ScreenShot_DarkStory__02d__02d_02d_02d__02d_02d_02d__03d.txt
push eax
call fcn.0059a4c2
mov eax, dword [0x6d3d38]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
add esp, 0x50
push eax
call edx
mov ecx, dword [eax]
lea edx, [ebp - 0x104]
push edx
push eax
mov eax, dword [ecx + 0xe8]
call eax
test eax, eax
je 0x4fc486
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push str.Data_ScreenShot.cnt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4fc45e
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
inc dword [ebp - 0x21c]
push 0
lea ecx, [ebp - 0x218]
push ecx
push 2
lea edx, [ebp - 0x22c]
push edx
push esi
call edi
push 0
lea eax, [ebp - 0x218]
push eax
push 2
lea ecx, [ebp - 0x224]
push ecx
push esi
call edi
push 0
lea edx, [ebp - 0x218]
push edx
push 2
lea eax, [ebp - 0x220]
push eax
push esi
call edi
push 0
lea ecx, [ebp - 0x218]
push ecx
push 2
lea edx, [ebp - 0x228]
push edx
push esi
call edi
push 0
lea eax, [ebp - 0x218]
push eax
push 2
lea ecx, [ebp - 0x230]
push ecx
push esi
call edi
push 0
lea edx, [ebp - 0x218]
push edx
push 2
lea eax, [ebp - 0x238]
push eax
push esi
call edi
push 0
lea ecx, [ebp - 0x218]
push ecx
push 2
lea edx, [ebp - 0x234]
push edx
push esi
call edi
push 0
lea eax, [ebp - 0x218]
push eax
push 2
lea ecx, [ebp - 0x21c]
push ecx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x104]
push edx
push 0xc9
mov ecx, 0x6c6dd0
call fcn.00448f80
push eax
push 0x17
push 0x6c6dd0
call fcn.0044a500
add esp, 0x10
jmp 0x4fc4a5
push 0xc8
mov ecx, 0x6c6dd0
call fcn.00448f80
push eax
push 0x17
push 0x6c6dd0
call fcn.0044a500
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 0x4fc506
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4fc4d2
sub eax, edx
push 0x80
lea edx, [ebp - 0x104]
lea eax, [ebp + eax - 0x104]
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 ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
push 1
mov ecx, 0x6d8f58
call fcn.00532d10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
push 0
mov ecx, 0x6d8f58
call fcn.00532d10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x6d421c]
test eax, eax
je case.0x4fbd5f.20
mov eax, dword [eax + 0xa354]
test eax, eax
je case.0x4fbd5f.20
cmp dword [eax + 0x20], 0
je case.0x4fbd5f.20
push 1
mov ecx, 0x6c6dd0
call fcn.00449200
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x6d421c]
test eax, eax
je case.0x4fbd5f.20
mov eax, dword [eax + 0xa354]
test eax, eax
je case.0x4fbd5f.20
cmp dword [eax + 0x20], 0
je case.0x4fbd5f.20
push 0
mov ecx, 0x6c6dd0
call fcn.00449200
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6d42d4]
test ecx, ecx
je case.0x4fbd5f.20
cmp word [0x6d8704], 0x2c
je 0x4fc654
cmp dword [0x6d4510], 0xe
je 0x4fc654
mov eax, dword [ecx]
mov eax, dword [eax + 8]
xor edx, edx
cmp dword [ecx + 0x10], edx
sete dl
push edx
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x6d8f5c]
cmp dword [eax + 0x31c], 0
jne case.0x4fbd5f.20
cmp dword [eax + 0x40c], 0
jne case.0x4fbd5f.20
mov ecx, 0x6059c8
call fcn.00524500
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
cmp dword [0x6d7448], 4
je case.0x4fbd5f.20
mov ecx, dword [0x6d4414]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
cmp dword [0x6d7448], 4
je case.0x4fbd5f.20
mov cx, word [ecx + 0xb84]
mov edx, dword [0x6d4414]
mov word [edx + 0x290], cx
mov ecx, dword [0x6d4414]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 1
call edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6d8f5c]
mov eax, 1
cmp dword [ecx + 0x40c], eax
jne case.0x4fbd5f.20
mov ecx, dword [0x6d4204]
mov edx, dword [ecx]
cmp dword [ecx + 0x10], eax
je 0x4fc656
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4