Function at 0x4f4e70
Capabilities:
Create directory
Delete file
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5697a8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1074
call fcn.00543120
mov eax, dword [0x5b3680]
xor eax, esp
mov dword [esp + 0x1070], eax
push ebx
push esi
push edi
mov eax, dword [0x5b3680]
xor eax, esp
push eax
lea eax, [esp + 0x1088]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x1c]
call fcn.00446740
mov dword [esp + 0x1090], 0
lea ecx, [esp + 0x10]
push 0x581d3c
call fcn.00434690
mov byte [esp + 0x1090], 1
xor eax, eax
or ebx, 0xffffffff
mov word [esp + 0x24], ax
cmp dword [edi + 0xc], eax
jne 0x4f56b8
lea esi, [edi + 0x3c]
jmp 0x4f4f00
mov dword [esp + 0x58], esi
push esi
mov byte [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x5c], 1
mov byte [esp + 0x1090], 2
cmp dword [edi + 0x5c], 0
jne 0x4f4f44
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x14
mov byte [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x1090], 1
jmp 0x4f56ae
lea eax, [esp + 0x50]
push eax
lea ecx, [edi + 0x54]
call fcn.004f6810
mov ecx, eax
mov dword [esp + 0x14], ecx
mov byte [esp + 0x1090], 3
mov edx, dword [ecx]
mov esi, dword [esp + 0x1c]
add esi, 0xfffffff0
lea ebx, [edx - 0x10]
cmp ebx, esi
je 0x4f4fb1
cmp dword [esi + 0xc], 0
jl 0x4f4fa4
mov eax, dword [ebx]
cmp eax, dword [esi]
jne 0x4f4fa4
mov ecx, ebx
call fcn.004022c0
mov ebx, eax
lea edx, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4f4f9b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [ebx + 0x10]
mov dword [esp + 0x1c], eax
jmp 0x4f4fb1
push dword [edx - 0xc]
lea ecx, [esp + 0x20]
push edx
call fcn.00402600
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
add esi, 0xfffffff0
mov edx, dword [edx + 4]
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x4f500c
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4f4fff
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4f4fff
call fcn.004022c0
mov dword [esp + 0x14], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x4f4ff6
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0x10
mov dword [esp + 0x20], eax
jmp 0x4f500c
push dword [edx - 0xc]
lea ecx, [esp + 0x24]
push edx
call fcn.00402600
mov byte [esp + 0x1090], 4
lea eax, [esp + 0x54]
mov dword [esp + 0x30], eax
mov byte [esp + 0x1090], 4
or ebx, 0xffffffff
mov edx, dword [esp + 0x54]
mov ecx, ebx
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4f5044
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x1090], 2
lea eax, [esp + 0x50]
mov dword [esp + 0x30], eax
mov byte [esp + 0x1090], 2
mov ecx, ebx
mov edx, dword [esp + 0x50]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4f5079
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x1090], 1
lea esi, [edi + 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x58d560
push dword [esp + 0x20]
mov byte [esp + 0x64], 0
call fcn.0052e5ea
add esp, 8
mov dword [edi + 0x14], eax
test eax, eax
je 0x4f56ae
lea ecx, [esp + 0x68]
call fcn.00482350
mov byte [esp + 0x1090], 8
mov edx, dword [eax]
mov esi, dword [esp + 0x10]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x4f5116
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4f5106
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4f5106
call fcn.004022c0
mov dword [esp + 0x14], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x4f50fd
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0x10
mov dword [esp + 0x10], eax
jmp 0x4f5113
push dword [edx - 0xc]
lea ecx, [esp + 0x14]
push edx
call fcn.00402600
or ebx, 0xffffffff
mov byte [esp + 0x1090], 1
mov ecx, ebx
mov edx, dword [esp + 0x68]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4f513b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
cmp dword [edi + 4], 0
je 0x4f5189
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push dword [eax - 0xc]
push eax
call fcn.00443ec0
push 1
push 0x58af04
lea ecx, [esp + 0x18]
call fcn.00443ec0
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [esp + 0x14]
call esi
push 2
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x4f518f
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 2
push 0x5894a4
lea ecx, [esp + 0x18]
call fcn.00443ec0
push 0
push dword [esp + 0x14]
call esi
push 2
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
push 0x58af04
lea ecx, [esp + 0x18]
call fcn.00443ec0
push 5
push str.write
lea ecx, [esp + 0x18]
call fcn.00443ec0
push 0
push dword [esp + 0x14]
call esi
push 1
push 0x58af04
lea ecx, [esp + 0x18]
call fcn.00443ec0
xor eax, eax
mov dword [esp + 0x40], 0
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call fcn.004f4a10
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x44]
call fcn.00436c90
mov byte [esp + 0x1090], 0xa
push dword [eax]
lea eax, [esp + 0x14]
push str._s.0
push eax
call fcn.00443ea0
add esp, 0xc
mov byte [esp + 0x1090], 1
mov ecx, ebx
mov edx, dword [esp + 0x60]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4f5259
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0xff
jl 0x4f52b0
push 0xfe
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x18]
call fcn.00414320
mov byte [esp + 0x1090], 0xc
lea ecx, [esp + 0x10]
push eax
call fcn.00416320
mov byte [esp + 0x1090], 1
mov ecx, ebx
mov edx, dword [esp + 0x64]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4f52b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x592f94
push dword [esp + 0x14]
call fcn.0052e5ea
mov esi, eax
add esp, 8
mov dword [esp + 0x2c], esi
test esi, esi
je 0x4f56a0
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x34], 0
push esi
push 1
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
call fcn.0052b6e4
push esi
push 1
lea eax, [esp + 0x3c]
push 2
push eax
call fcn.0052b6e4
push esi
push 1
lea eax, [esp + 0x94]
push 0x10
push eax
call fcn.0052b6e4
add esp, 0x30
push 2
push 0
push dword [edi + 0x14]
mov dword [esp + 0x40], ebx
call fcn.0052e7bd
add esp, 0xc
push dword [edi + 0x14]
call fcn.0052ec5f
mov edx, dword [esp + 0x38]
mov ebx, eax
add esp, 4
mov dword [esp + 0x3c], ebx
cmp ebx, edx
jbe 0x4f53ec
mov ecx, dword [edi + 0x30]
shl ecx, 0x14
cmp ebx, ecx
jae 0x4f53ec
push 0
push edx
push dword [edi + 0x14]
call fcn.0052e7bd
add esp, 0xc
mov eax, ebx
sub eax, dword [esp + 0x34]
push 0x1000
push eax
call fcn.005308f4
mov esi, eax
add esp, 8
mov eax, edx
mov dword [esp + 0x14], eax
test esi, esi
jle 0x4f53ba
mov ebx, dword [esp + 0x2c]
push dword [edi + 0x14]
lea eax, [esp + 0x80]
push 0x1000
push 1
push eax
call fcn.0052d4e2
push ebx
push 0x1000
lea eax, [esp + 0x94]
push 1
push eax
call fcn.0052b6e4
add esp, 0x20
dec esi
jne 0x4f5380
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
push dword [edi + 0x14]
push eax
lea eax, [esp + 0x84]
push 1
push eax
call fcn.0052d4e2
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0x8c]
push esi
push dword [esp + 0x28]
push 1
push eax
call fcn.0052b6e4
mov edx, dword [esp + 0x54]
add esp, 0x20
mov eax, dword [edi + 0x30]
shl eax, 0x14
cmp ebx, eax
jae 0x4f5406
cmp ebx, edx
jbe 0x4f5410
cmp dword [edi + 0xc], 0
je 0x4f5310
jmp 0x4f5410
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.0052c324
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00482350
mov byte [esp + 0x1090], 0xe
cmp dword [edi + 4], 0
je 0x4f546d
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push dword [eax - 0xc]
push eax
call fcn.00443ec0
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [esp + 0x1c]
call esi
push 2
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
push 0x58af04
lea ecx, [esp + 0x20]
call fcn.00443ec0
jmp 0x4f5473
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 2
push 0x58949c
lea ecx, [esp + 0x20]
call fcn.00443ec0
push 1
push 0x58af04
lea ecx, [esp + 0x20]
call fcn.00443ec0
push 0
push dword [esp + 0x1c]
call esi
push 2
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call fcn.00402a00
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4f5774
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x38], eax
mov byte [esp + 0x1090], 0x10
mov edx, 0x589494
push 0
push 1
lea ecx, [esp + 0x40]
call fcn.004820b0
mov esi, dword [esp + 0x40]
lea ecx, [esp + 0x20]
add esp, 8
push dword [esi - 0xc]
push esi
call fcn.00443ec0
push 0x58d874
push dword [esp + 0x1c]
mov byte [esp + 0x33], 1
call fcn.0052e5ea
mov ebx, eax
add esp, 8
mov dword [esp + 0x30], ebx
test ebx, ebx
je 0x4f5657
push ebx
push 1
lea eax, [esp + 0x74]
push 0x10
push eax
call fcn.0052b6e4
push ebx
push 1
lea eax, [esp + 0x43]
push 1
push eax
call fcn.0052b6e4
push ebx
push 1
lea eax, [esp + 0x5c]
push 4
push eax
call fcn.0052b6e4
mov eax, dword [esp + 0x40]
add esp, 0x30
cmp dword [eax - 4], 1
jle 0x4f5565
push dword [eax - 0xc]
lea ecx, [esp + 0x14]
call fcn.004024c0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
xor edx, edx
add ecx, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ecx
or ecx, 0xffffffff
cmp dword [esp + 0x14], edx
jbe 0x4f55a2
mov esi, eax
nop
cmp ecx, 4
jl 0x4f5589
xor ecx, ecx
jmp 0x4f558a
inc ecx
mov al, byte [ecx + 0x5898b8]
xor byte [edx + esi], al
inc edx
cmp edx, dword [esp + 0x14]
jb 0x4f5580
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 0xc]
push ebx
push 1
add eax, eax
push eax
push dword [esp + 0x38]
call fcn.0052b6e4
push ebx
push 1
lea eax, [esp + 0x3c]
push 2
push eax
call fcn.0052b6e4
mov ebx, dword [esp + 0x3c]
add esp, 0x20
cmp dword [ebx - 4], 1
jle 0x4f55e0
push dword [ebx - 0xc]
lea ecx, [esp + 0x20]
call fcn.004024c0
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx - 0xc]
or ecx, 0xffffffff
add eax, eax
mov dword [esp + 0x14], ebx
xor edx, edx
mov dword [esp + 0x3c], eax
test eax, eax
je 0x4f5620
mov esi, dword [esp + 0x14]
mov ebx, eax
lea esp, [esp]
cmp ecx, 4
jl 0x4f5609
xor ecx, ecx
jmp 0x4f560a
inc ecx
mov al, byte [ecx + 0x5898b8]
xor byte [edx + esi], al
inc edx
cmp edx, ebx
jb 0x4f5600
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx - 0xc]
mov ebx, dword [esp + 0x30]
add eax, eax
push ebx
push 1
push eax
push dword [esp + 0x20]
call fcn.0052b6e4
push ebx
push 1
lea eax, [esp + 0x3c]
push 2
push eax
call fcn.0052b6e4
push ebx
call fcn.0052c17b
add esp, 0x24
push ebx
call fcn.0052c324
add esp, 4
mov byte [esp + 0x1090], 0xe
add esi, 0xfffffff0
or ebx, 0xffffffff
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4f567b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x1090], 1
mov ecx, ebx
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4f56a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [edi + 0x14]
call fcn.0052c324
add esp, 4
lea esi, [edi + 0x3c]
cmp dword [edi + 0xc], 0
je 0x4f4f00
mov byte [esp + 0x1090], 0
mov ecx, ebx
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4f56dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x1090], 0x14
lea eax, [esp + 0x20]
mov dword [esp + 0x30], eax
mov byte [esp + 0x1090], 0x14
mov ecx, ebx
mov edx, dword [esp + 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4f5715
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x1090], 0xffffffff
lea eax, [esp + 0x1c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x1090], 0xffffffff
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4f574e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [esp + 0x1088]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1070]
xor ecx, esp
call fcn.005295e2
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004027b0
int3