Function at 0x4f6f60
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5516ea
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x5c2b80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 1
mov byte [ebp - 4], 2
push 0x400
call fcn.0052a1cf
add esp, 4
mov edi, eax
mov dword [ebp - 0x114], edi
push 0x800
call fcn.0052a1cf
add esp, 4
mov esi, eax
mov dword [ebp - 0xfc], esi
push 0x4000
call fcn.0052a1cf
add esp, 4
mov ebx, eax
mov dword [ebp - 0x104], ebx
push 0x8c
push 0
lea eax, [ebp - 0xb8]
push eax
call fcn.0052ebd0
add esp, 0xc
lea ecx, [ebp - 0xb8]
call fcn.004f7640
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.004571a0
mov byte [ebp - 4], 4
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
call fcn.004571a0
mov byte [ebp - 4], 5
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
call fcn.004571a0
mov byte [ebp - 4], 6
push dword [ebp + 0xc]
lea ecx, [ebp - 0xb8]
call fcn.004f8590
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0xb8]
call fcn.004f7800
xor eax, eax
mov dword [ebp - 0xf8], eax
cmp eax, dword [ebp - 0x10c]
jge 0x4f7495
lea ecx, [ebp - 0xb8]
test eax, eax
jne 0x4f70a0
call fcn.004f7800
jmp 0x4f70a5
call fcn.004f7830
lea ecx, [ebp - 0xb8]
call fcn.004f7bd0
push 0x400
push 0
push edi
call fcn.0052ebd0
add esp, 0xc
push 0x800
push 0
push esi
call fcn.0052ebd0
push ecx
push 0x400
push edi
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0xb8]
call fcn.004f82b0
push 0x400
push esi
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
lea ecx, [ebp - 0x18]
call fcn.00457370
mov eax, dword [ebp + 8]
lea edi, [eax - 0x10]
mov ecx, dword [ebp - 0x1c]
lea esi, [ecx - 0x10]
cmp edi, esi
je 0x4f715b
lea ebx, [esi + 0xc]
cmp dword [ebx], 0
jl 0x4f714f
mov edx, dword [edi]
cmp edx, dword [esi]
jne 0x4f714f
mov ecx, edi
call fcn.00456280
mov edi, eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x4f7147
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
lea eax, [edi + 0x10]
mov dword [ebp - 0x1c], eax
jmp 0x4f715b
push dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004573c0
push ecx
lea ecx, [ebp - 0x18]
call fcn.004f8b30
mov dword [ebp - 0x100], eax
test eax, eax
js 0x4f7369
lea ecx, [eax + 1]
push ecx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x18]
call fcn.0045eb20
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x108]
call fcn.0045bbe0
add esp, 4
mov byte [ebp - 4], 8
mov edx, dword [eax]
lea esi, [edx - 0x10]
mov ebx, dword [ebp - 0x1c]
add ebx, 0xfffffff0
cmp esi, ebx
je 0x4f724a
cmp dword [ebx + 0xc], 0
jl 0x4f723e
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x4f723e
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
lea edx, [esi + 0xc]
cmp dword [edx], 0
jl 0x4f71e2
cmp ecx, dword [esi]
jne 0x4f71e2
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x4f721f
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x4f71f6
call fcn.00456de0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.0052b264
add esp, 0x10
or eax, 0xffffffff
lea ecx, [ebx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4f7236
mov ecx, dword [ebx]
mov eax, dword [ecx]
push ebx
call dword [eax + 4]
lea eax, [edi + 0x10]
mov dword [ebp - 0x1c], eax
jmp 0x4f724a
push dword [edx - 0xc]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004573c0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x108]
call fcn.00456040
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x118]
call fcn.00456040
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax - 0xc]
sub eax, dword [ebp - 0x100]
dec eax
push eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00479db0
mov byte [ebp - 4], 9
mov edx, dword [eax]
lea esi, [edx - 0x10]
mov ebx, dword [ebp - 0x18]
add ebx, 0xfffffff0
cmp esi, ebx
je 0x4f7355
cmp dword [ebx + 0xc], 0
jl 0x4f7349
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x4f7349
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
lea edx, [esi + 0xc]
cmp dword [edx], 0
jl 0x4f72db
cmp ecx, dword [esi]
jne 0x4f72db
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x4f7318
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x4f72ef
call fcn.00456de0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.0052b264
add esp, 0x10
or eax, 0xffffffff
lea ecx, [ebx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4f732f
mov ecx, dword [ebx]
mov eax, dword [ecx]
push ebx
call dword [eax + 4]
lea eax, [edi + 0x10]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x11c]
call fcn.00456040
jmp 0x4f715b
push dword [edx - 0xc]
push edx
lea ecx, [ebp - 0x18]
call fcn.004573c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x11c]
call fcn.00456040
jmp 0x4f715b
push dword [ebp - 0xfc]
lea ecx, [ebp - 0x18]
call fcn.00457370
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x110]
call fcn.0045bbe0
add esp, 4
mov byte [ebp - 4], 0xa
mov edx, dword [eax]
lea ecx, [edx - 0x10]
mov esi, dword [ebp - 0x1c]
add esi, 0xfffffff0
cmp ecx, esi
je 0x4f73dc
lea edi, [esi + 0xc]
cmp dword [edi], 0
jl 0x4f73d0
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4f73d0
call fcn.00456280
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4f73c8
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
lea eax, [ebx + 0x10]
mov dword [ebp - 0x1c], eax
jmp 0x4f73dc
push dword [edx - 0xc]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004573c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x110]
call fcn.00456040
push 0x2f
lea ecx, [ebp - 0x18]
call fcn.0045ea90
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx - 0xc]
dec ecx
push 0
cmp eax, ecx
jne 0x4f7413
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, dword [ebp - 0x104]
jmp 0x4f745f
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov ebx, dword [ebp - 0x104]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [ebx]
push ecx
push ebx
lea ecx, [ebp - 0xb8]
call fcn.004f7d20
test eax, eax
jne 0x4f7488
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xb8]
call fcn.004f77a0
mov eax, dword [ebp - 0xf8]
inc eax
mov dword [ebp - 0xf8], eax
mov esi, dword [ebp - 0xfc]
mov edi, dword [ebp - 0x114]
jmp 0x4f7083
push 0
lea ecx, [ebp - 0x24]
push ecx
push eax
push ebx
push esi
call edi
jmp 0x4f7440
push edi
call fcn.0052ac0d
add esp, 4
push esi
call fcn.0052ac0d
add esp, 4
push ebx
call fcn.0052ac0d
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x20]
call fcn.00456040
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00456040
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00456040
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb8]
call fcn.004f7f20
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00456040
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00456040
mov al, 1
jmp 0x4f7537
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052ab62
mov esp, ebp
pop ebp
ret