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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b4
mov eax, dword [0x6ddc7c]
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.00617280
push ecx
push 0x100
lea eax, [ebp - 0x108]
mov ecx, ebx
push eax
push 0
lea edx, [ebp - 0x4b0]
call fcn.004b56e0
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x46acd5
push 0x2000
call fcn.00620e27
add esp, 4
mov dword [ebp - 0x454], eax
test eax, eax
jne 0x46a8cd
lea eax, [esi - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ff7bd
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 0x46a902
cmp al, 0x2f
je 0x46a8ef
cmp al, 0x5c
jne 0x46a8f2
lea ebx, [ecx + 1]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x46a8e7
mov al, byte [ebx]
mov dword [ebp - 0x42c], ebx
mov ecx, dword [edi]
test al, al
jne 0x46a920
test ecx, ecx
jne 0x46acc5
lea ecx, [ebp - 0x108]
call fcn.0046a7b0
jmp 0x46acc5
test ecx, ecx
jne 0x46a92c
lea ebx, [ebp - 0x108]
jmp 0x46a92e
mov dl, al
test dl, dl
je 0x46a956
cmp byte [ebx + 1], 0
lea eax, [ebx + 1]
mov ecx, ebx
je 0x46a956
nop dword [eax]
cmp byte [ecx], 0x2e
jne 0x46a94b
cmp byte [eax], 0x2e
cmove ebx, ecx
mov ecx, eax
cmp byte [ecx + 1], 0
lea eax, [ecx + 1]
jne 0x46a940
mov al, byte [ebx]
cmp al, 0x2f
je 0x46a960
cmp al, 0x2e
jne 0x46a963
inc ebx
jmp 0x46a956
push 0x105
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], ebx
push 0
push eax
call fcn.00617280
add esp, 0xc
xor ecx, ecx
nop dword [eax]
nop word [eax + eax]
mov al, byte [ecx + 0x6eb6a0]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x211], al
test al, al
jne 0x46a990
mov edx, ebx
mov esi, ebx
mov al, byte [edx]
inc edx
test al, al
jne 0x46a9a8
lea edi, [ebp - 0x210]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46a9b8
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.00617280
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 0x46a9e6
push 0x105
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00617280
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.00620ceb
lea edx, [ebp - 0x318]
add esp, 0x14
mov esi, edx
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x46aa40
lea edi, [ebp - 0x420]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46aa50
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.00620dda
mov ecx, dword [ebp - 0x450]
add esp, 4
call fcn.004b6210
mov esi, eax
test esi, esi
jne 0x46acba
lea eax, [ebp - 0x210]
push 0x6b482c
push eax
call fcn.0061b2ce
add esp, 8
test eax, eax
je 0x46aab4
push eax
call fcn.0061b35b
add esp, 4
cmp dword [ebp + 8], esi
je 0x46acab
lea eax, [ebp - 0x210]
push 0x6b4830
push eax
call fcn.0061b2ce
mov edi, eax
add esp, 8
test edi, edi
jne 0x46abe0
mov eax, dword [ebp - 0x434]
cmp dword [eax], edi
jne 0x46acab
mov eax, dword [ebp - 0x42c]
lea ecx, [ebp - 0x108]
cmp eax, ecx
je 0x46acab
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 0x46ab06
sub esi, ecx
je 0x46abb5
xor ecx, ecx
mov eax, esi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00620e27
mov edi, eax
add esp, 4
test edi, edi
je 0x46abb5
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 0x46ab40
cmp byte [edi + esi - 1], 0x2f
jne 0x46ab58
mov byte [edi + esi - 1], al
mov ecx, edi
call fcn.0046a7b0
test eax, eax
je 0x46abac
lea esi, [edi + 1]
mov bl, byte [esi]
test bl, bl
je 0x46ab84
mov al, bl
nop
mov bl, al
cmp al, 0x5c
je 0x46ab84
cmp al, 0x2f
je 0x46ab84
mov bl, byte [esi + 1]
inc esi
mov al, bl
test bl, bl
jne 0x46ab70
mov ecx, edi
mov byte [esi], 0
call fcn.0046a7b0
cmp eax, 0xffffffff
jne 0x46ab9d
call fcn.00620dc7
cmp dword [eax], 2
je 0x46aba6
test bl, bl
je 0x46aba6
mov byte [esi], bl
inc esi
jmp 0x46ab66
mov ebx, dword [ebp - 0x424]
push edi
call fcn.0061f64a
add esp, 4
mov eax, dword [ebp - 0x42c]
mov cl, byte [ebp - 0x449]
push 0x6b4830
push ebx
mov byte [eax - 1], cl
call fcn.0061b2ce
mov edi, eax
add esp, 8
test edi, edi
je 0x46acab
nop dword [eax]
mov edx, dword [ebp - 0x454]
push ecx
mov ecx, dword [ebp - 0x450]
call fcn.004b6430
mov esi, eax
add esp, 4
test esi, esi
js 0x46ac17
jle 0x46ac17
push edi
push 1
push esi
push dword [ebp - 0x454]
call fcn.0061b613
add esp, 0x10
cmp eax, 1
je 0x46abe0
or esi, 0xffffffff
test edi, edi
je 0x46ac24
push edi
call fcn.0061b35b
add esp, 4
test esi, esi
jne 0x46acba
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.004b66f0
mov esi, eax
jmp 0x46acc5
mov ecx, dword [ebp - 0x450]
call fcn.004b66f0
push dword [ebp - 0x454]
call fcn.0061f64a
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005ff7bd
mov esp, ebp
pop ebp
ret