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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584dd6
mov eax, dword fs:[0]
push eax
mov eax, 0x42f0
call fcn.0051b4b0
mov eax, dword [0x5c4104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x42a4], edx
mov esi, ecx
push 0x401c
lea eax, [ebp - 0x4264]
mov dword [ebp - 0x42a0], 0
xorps xmm0, xmm0
push 0
push eax
movq qword [ebp - 0x429c], xmm0
call fcn.0051f290
push 0x50
lea eax, [ebp - 0x42fc]
push 0
push eax
call fcn.0051f290
add esp, 0x18
mov dword [ebp - 0x4268], 0
xor edi, edi
mov dword [ebp - 0x4290], 0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x4278], edi
mov dword [ebp - 0x4284], edi
push esi
mov dword [ebp - 0x42ac], 0xffffffff
mov dword [ebp - 0x4280], edi
mov dword [ebp - 0x42a8], edi
mov dword [ebp - 0x426c], 0x4f34d0
mov dword [ebp - 0x4268], 0x4f34f0
mov dword [ebp - 0x4294], 0x4f3500
mov dword [ebp - 0x4290], 0x4f3520
call fcn.0041b4a0
lea edx, [ebp - 0x230]
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x248]
call fcn.004efdc0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4f0017
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0041ecb0
push 0
push 0x80
push 3
xor eax, eax
mov dword [ebp - 0x21c], 7
cmp dword [ebp - 0x234], 0x10
push 0
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push 1
push SysReAllocStringLen
push eax
mov dword [ebp - 0x220], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4298], eax
cmp eax, 0xffffffff
je 0x4f0076
xor ebx, ebx
jmp 0x4f007a
call esi
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x234]
cmp eax, 0x10
jb 0x4f009f
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.0041da30
test ebx, ebx
jne 0x4f03fa
lea eax, [ebp - 0x42a0]
mov dword [ebp - 0x42a0], 0x4f3450
mov dword [ebp - 0x429c], 0x4f3470
mov dword [ebp - 0x4264], 0x4f3750
mov dword [ebp - 0x4260], 0x4f37b0
mov dword [ebp - 0x425c], 0x4f37c0
mov dword [ebp - 0x4258], 0x4f3810
mov dword [ebp - 0x4254], eax
mov dword [ebp - 0x424c], ebx
mov dword [ebp - 0x4250], ebx
call fcn.004f3930
lea ecx, [ebp - 0x42fc]
call fcn.004f0940
lea eax, [ebp - 0x4294]
push eax
lea eax, [ebp - 0x426c]
push eax
lea edx, [ebp - 0x4264]
call fcn.004f2a40
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4f0146
lea edx, [ebp - 0x426c]
lea ecx, [ebp - 0x42fc]
call fcn.004f09b0
test ebx, ebx
jne 0x4f03fa
xor esi, esi
mov dword [ebp - 0x4270], esi
cmp dword [ebp - 0x42e0], esi
jbe 0x4f03de
mov eax, dword [ebp - 0x42ec]
add eax, 0x19
mov dword [ebp - 0x4274], eax
nop dword [eax]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0051f290
push dword [ebp - 0x42a4]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0053c7ec
mov edx, dword [ebp - 0x42bc]
add esp, 0x18
mov eax, dword [ebp - 0x4270]
mov dword [ebp - 0x4288], 0
mov dword [ebp - 0x427c], 0
mov esi, dword [edx + esi*4 + 4]
sub esi, dword [edx + eax*4]
cmp esi, dword [ebp - 0x4284]
jbe 0x4f0202
push edi
call fcn.00529cc6
add esp, 4
mov dword [ebp - 0x4284], esi
add esi, esi
je 0x4f03ca
push esi
call fcn.0053bd55
mov edi, eax
add esp, 4
mov dword [ebp - 0x4278], edi
test edi, edi
je 0x4f03cc
mov edx, dword [ebp - 0x42bc]
mov esi, dword [ebp - 0x4270]
mov ecx, dword [edx + esi*4]
mov edx, dword [edx + esi*4 + 4]
sub edx, ecx
test edi, edi
je 0x4f0246
mov eax, dword [ebp - 0x42b8]
lea esi, [eax + ecx*2]
test edx, edx
je 0x4f0240
mov ecx, edi
sub esi, edi
nop word [eax + eax]
mov ax, word [esi + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x4f0230
mov esi, dword [ebp - 0x4270]
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp - 0x4274]
cmp byte [eax], 0
jne 0x4f02af
lea eax, [ebp - 0x4294]
push eax
lea eax, [ebp - 0x426c]
push eax
lea eax, [ebp - 0x427c]
push eax
lea eax, [ebp - 0x4288]
push eax
lea eax, [ebp - 0x42a8]
push eax
lea eax, [ebp - 0x4280]
push eax
lea eax, [ebp - 0x42ac]
push eax
push esi
lea edx, [ebp - 0x4264]
lea ecx, [ebp - 0x42fc]
call fcn.004f2e30
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x4f03de
xor edi, edi
cmp word [ebp - 0x218], di
je 0x4f030d
xor ecx, ecx
lea esi, [ebp - 0x218]
movzx eax, word [esi]
cmp eax, 0x2f
je 0x4f02d4
mov edx, 0x2f2f
cmp ax, dx
jne 0x4f02fb
cmp ecx, 0x208
jae 0x4f03d3
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, 0x5c
mov word [esi], ax
inc edi
lea esi, [ebp - 0x218]
lea ecx, [edi + edi]
add esi, ecx
cmp word [esi], 0
jne 0x4f02c2
mov edi, dword [ebp - 0x4274]
lea eax, [ebp - 0x218]
push 0
cmp byte [edi], 0
je 0x4f0329
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4f039d
mov edi, dword [ebp - 0x4288]
xor ebx, ebx
add edi, dword [ebp - 0x4280]
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4f035a
mov ebx, 1
jmp 0x4f0397
push 0
lea eax, [ebp - 0x428c]
mov dword [ebp - 0x428c], ebx
push eax
push dword [ebp - 0x427c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x427c]
cmp dword [ebp - 0x428c], eax
mov eax, 1
cmovne ebx, eax
cmp esi, 0xffffffff
je 0x4f0397
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x4274]
test ebx, ebx
jne 0x4f03d8
mov esi, dword [ebp - 0x4270]
add edi, 0x20
inc esi
mov dword [ebp - 0x4274], edi
mov edi, dword [ebp - 0x4278]
mov dword [ebp - 0x4270], esi
cmp esi, dword [ebp - 0x42e0]
jae 0x4f03de
jmp 0x4f0170
xor edi, edi
mov ebx, 1
jmp 0x4f03de
call fcn.0051b2bd
mov edi, dword [ebp - 0x4278]
push dword [ebp - 0x4280]
lea eax, [ebp - 0x426c]
push eax
call dword [ebp - 0x4268]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
push dword [ebp - 0x42cc]
lea eax, [ebp - 0x426c]
push eax
call dword [ebp - 0x4268]
push dword [ebp - 0x42c8]
lea eax, [ebp - 0x426c]
push eax
call dword [ebp - 0x4268]
push dword [ebp - 0x42c4]
lea eax, [ebp - 0x426c]
push eax
call dword [ebp - 0x4268]
push dword [ebp - 0x42c0]
lea eax, [ebp - 0x426c]
push eax
call dword [ebp - 0x4268]
push dword [ebp - 0x42bc]
lea eax, [ebp - 0x426c]
push eax
call dword [ebp - 0x4268]
push dword [ebp - 0x42b8]
lea eax, [ebp - 0x426c]
push eax
call dword [ebp - 0x4268]
lea edx, [ebp - 0x426c]
mov dword [ebp - 0x42b8], 0
lea ecx, [ebp - 0x42fc]
mov dword [ebp - 0x42b4], 0
call fcn.004f0890
push edi
call fcn.00529cc6
mov eax, dword [ebp - 0x4298]
add esp, 0x34
cmp eax, 0xffffffff
je 0x4f04b2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4f04b2
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051b15a
mov esp, ebp
pop ebp
ret