Function at 0x4ef760
Capabilities:
Create directory
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568e38
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5b3680]
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 esi, dword [ebp + 8]
mov dword [ebp - 0x40], esi
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, 0x54
add eax, esi
push eax
call fcn.004729c0
test eax, eax
je 0x4efae6
call fcn.00402a00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4ef7c5
push 0x80004005
call fcn.004027b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 1
call fcn.00402a00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4ef7f5
push 0x80004005
call fcn.004027b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 3
call fcn.00402a00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4ef822
push 0x80004005
call fcn.004027b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 5
mov edx, str.snlog
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004820b0
mov eax, dword [ebp - 0x2c]
add esp, 8
or ebx, 0xffffffff
cmp dword [eax - 0xc], 0
je 0x4efa85
lea ecx, [ebp - 0x24]
call fcn.00482350
mov byte [ebp - 4], 6
mov eax, dword [0x5ba51c]
test eax, eax
je 0x4ef88a
cmp dword [eax + 0x180], 0
je 0x4ef88a
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
mov eax, dword [eax + 4]
mov eax, dword [eax + esi + 0x54]
push dword [eax - 0xc]
push eax
call fcn.00443ec0
mov edi, dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0
push dword [ebp - 0x24]
push 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 2
push dword [ebp - 0x24]
call esi
push 0x588b28
lea eax, [ebp - 0x24]
push 0x58b238
push eax
call fcn.00443ea0
add esp, 0xc
push 0
push dword [ebp - 0x24]
push 0
call edi
push 2
push dword [ebp - 0x24]
call esi
lea ecx, [ebp - 0x30]
call fcn.00402b10
mov byte [ebp - 4], 7
lea eax, [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
push 0x58ae70
push eax
call fcn.00415d20
push 0x58c254
push dword [ebp - 0x30]
call fcn.0052e5ea
mov edi, eax
add esp, 0x18
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x4efa45
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [ebp - 0x34]
call fcn.00402b10
mov byte [ebp - 4], 8
movzx eax, word [ebp - 0x20]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
push str._0.2u:_0.2u:_0.2u__0.2u._0.2u._0.2u
push eax
call fcn.00415d20
mov ecx, dword [ebp - 0x40]
push dword [ecx + 0x90]
movzx eax, byte [ecx + 0x81]
push dword [ecx + 0x98]
push dword [ecx + 0x94]
push eax
movzx eax, byte [ecx + 0xa0]
push eax
movzx eax, byte [ecx + 0x80]
push eax
push dword [ecx + 0x84]
lea eax, [ebp - 0x38]
push dword [ecx + 0x8c]
push dword [ebp - 0x34]
push 0x592d58
push eax
call fcn.00415d20
mov esi, dword [ebp - 0x38]
add esp, 0x4c
test esi, esi
jne 0x4ef9a3
xor eax, eax
jmp 0x4ef9e6
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x4ef9b0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ef9b0
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jle 0x4ef9ce
xor eax, eax
jmp 0x4ef9e3
add edi, edi
mov eax, edi
call fcn.00539600
mov ecx, esp
mov edx, esi
push 3
push edi
call fcn.00433d20
mov edi, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00414510
mov ecx, dword [ebp - 0x28]
cmp dword [ecx - 4], 1
mov esi, dword [ecx - 0xc]
jle 0x4efa07
push esi
lea ecx, [ebp - 0x28]
call fcn.00403280
mov ecx, dword [ebp - 0x28]
push 0
mov edx, esi
call fcn.004fb8d0
push edi
push 1
push esi
push dword [ebp - 0x28]
call fcn.0052b6e4
push edi
call fcn.0052c324
add esp, 0x18
mov byte [ebp - 4], 7
mov ecx, ebx
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4efa45
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov ecx, ebx
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4efa65
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov ecx, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4efa85
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov ecx, ebx
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4efaa5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, ebx
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4efac5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4efae6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
lea esp, [ebp - 0x50]
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.005295e2
mov esp, ebp
pop ebp
ret 4