Function at 0x46baf0
Capabilities:
Create directory
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b4
mov eax, dword [0x6a8c7c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x100
lea eax, [ebp - 0x108]
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x434], edi
push 0
push eax
mov dword [ebp - 0x450], ebx
call fcn.005ed310
push ecx
push 0x100
lea eax, [ebp - 0x108]
mov ecx, ebx
push eax
push 0
lea edx, [ebp - 0x4b0]
call fcn.0048b890
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x46bf87
push 0x2000
call fcn.005f6f1b
add esp, 4
mov dword [ebp - 0x454], eax
test eax, eax
jne 0x46bb7d
lea eax, [esi - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d584c
mov esp, ebp
pop ebp
ret
mov dl, byte [ebp - 0x108]
lea ebx, [ebp - 0x108]
mov al, dl
mov dword [ebp - 0x42c], ebx
mov ecx, ebx
test al, al
je 0x46bbb2
cmp al, 0x2f
je 0x46bb9f
cmp al, 0x5c
jne 0x46bba2
lea ebx, [ecx + 1]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x46bb97
mov al, byte [ebx]
mov dword [ebp - 0x42c], ebx
mov ecx, dword [edi]
test al, al
jne 0x46bbd0
test ecx, ecx
jne 0x46bf77
lea ecx, [ebp - 0x108]
call fcn.0046ba60
jmp 0x46bf77
test ecx, ecx
jne 0x46bbdc
lea ebx, [ebp - 0x108]
jmp 0x46bbde
mov dl, al
test dl, dl
je 0x46bc06
cmp byte [ebx + 1], 0
lea eax, [ebx + 1]
mov ecx, ebx
je 0x46bc06
nop dword [eax]
cmp byte [ecx], 0x2e
jne 0x46bbfb
cmp byte [eax], 0x2e
cmove ebx, ecx
mov ecx, eax
cmp byte [ecx + 1], 0
lea eax, [ecx + 1]
jne 0x46bbf0
mov al, byte [ebx]
cmp al, 0x2f
je 0x46bc10
cmp al, 0x2e
jne 0x46bc13
inc ebx
jmp 0x46bc06
push 0x105
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], ebx
push 0
push eax
call fcn.005ed310
add esp, 0xc
xor ecx, ecx
nop dword [eax]
nop word [eax + eax]
mov al, byte [ecx + 0x6b4020]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x211], al
test al, al
jne 0x46bc40
mov edx, ebx
mov esi, ebx
mov al, byte [edx]
inc edx
test al, al
jne 0x46bc58
lea edi, [ebp - 0x210]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46bc68
mov ecx, edx
lea eax, [ebp - 0x318]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x105
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.005ed310
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx - 0x210]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x319], al
test al, al
jne 0x46bc96
push 0x105
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.005ed310
add esp, 0xc
lea eax, [ebp - 0x318]
push 0
push 0
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.005f6ddf
lea edx, [ebp - 0x318]
add esp, 0x14
mov esi, edx
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x46bcf0
lea edi, [ebp - 0x420]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46bd00
mov ecx, edx
lea eax, [ebp - 0x420]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.005f6ece
mov ecx, dword [ebp - 0x450]
add esp, 4
call fcn.0048c3c0
mov esi, eax
test esi, esi
jne 0x46bf6c
lea eax, [ebp - 0x210]
push 0x6868a0
push eax
call fcn.005f135e
add esp, 8
test eax, eax
je 0x46bd64
push eax
call fcn.005f13eb
add esp, 4
cmp dword [ebp + 8], esi
je 0x46bf5d
lea eax, [ebp - 0x210]
push 0x68689c
push eax
call fcn.005f135e
mov edi, eax
add esp, 8
test edi, edi
jne 0x46be92
mov eax, dword [ebp - 0x434]
cmp dword [eax], edi
jne 0x46bf5d
mov eax, dword [ebp - 0x42c]
lea ecx, [ebp - 0x108]
cmp eax, ecx
je 0x46bf5d
mov cl, byte [eax - 1]
mov esi, ebx
mov byte [ebp - 0x449], cl
mov byte [eax - 1], 0
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x46bdb6
sub esi, ecx
je 0x46be65
xor ecx, ecx
mov eax, esi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.005f6f1b
mov edi, eax
add esp, 4
test edi, edi
je 0x46be65
mov edx, edi
mov ecx, ebx
sub edx, ebx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x46bdf0
cmp byte [edi + esi - 1], 0x2f
jne 0x46be08
mov byte [edi + esi - 1], al
mov ecx, edi
call fcn.0046ba60
test eax, eax
je 0x46be5c
lea esi, [edi + 1]
mov bl, byte [esi]
test bl, bl
je 0x46be34
mov al, bl
nop
mov bl, al
cmp al, 0x5c
je 0x46be34
cmp al, 0x2f
je 0x46be34
mov bl, byte [esi + 1]
inc esi
mov al, bl
test bl, bl
jne 0x46be20
mov ecx, edi
mov byte [esi], 0
call fcn.0046ba60
cmp eax, 0xffffffff
jne 0x46be4d
call fcn.005f6ebb
cmp dword [eax], 2
je 0x46be56
test bl, bl
je 0x46be56
mov byte [esi], bl
inc esi
jmp 0x46be16
mov ebx, dword [ebp - 0x424]
push edi
call fcn.005f56da
add esp, 4
mov eax, dword [ebp - 0x42c]
mov cl, byte [ebp - 0x449]
push 0x68689c
mov byte [eax - 1], cl
lea eax, [ebp - 0x210]
push eax
call fcn.005f135e
mov edi, eax
add esp, 8
test edi, edi
je 0x46bf5d
mov edx, dword [ebp - 0x454]
push ecx
mov ecx, dword [ebp - 0x450]
call fcn.0048c5e0
mov esi, eax
add esp, 4
test esi, esi
js 0x46bec9
jle 0x46bec9
push edi
push 1
push esi
push dword [ebp - 0x454]
call fcn.005f16a3
add esp, 0x10
cmp eax, 1
je 0x46be92
or esi, 0xffffffff
test edi, edi
je 0x46bed6
push edi
call fcn.005f13eb
add esp, 4
test esi, esi
jne 0x46bf6c
push esi
push esi
push 3
push esi
push esi
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x448]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x430]
push eax
mov eax, dword [ebp - 0x4a0]
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x450]
call fcn.0048c8a0
mov esi, eax
jmp 0x46bf77
mov ecx, dword [ebp - 0x450]
call fcn.0048c8a0
push dword [ebp - 0x454]
call fcn.005f56da
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005d584c
mov esp, ebp
pop ebp
ret