Function at 0x46b2c0
Capabilities:
Create directory
Delete file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c760
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x5c
mov eax, dword [0x5f6ea4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [0x5ffaf4], ecx
test cl, 2
je 0x46b4f6
cmp dword [0x5f7da8], 0xffffffff
jne 0x46b534
push str.SYSTEMDRIVE
call fcn.00559bf6
mov edx, eax
mov dword [ebp - 0x1c], 0
mov ecx, edx
mov dword [ebp - 0x18], 7
add esp, 4
xor eax, eax
mov word [ebp - 0x2c], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46b341
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.0044b750
push 5
push str._temp
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00453360
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5e1fa4
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x68]
call fcn.004548f0
push 0x5f7d90
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.004547b0
mov esi, eax
add esp, 8
cmp esi, 0x5f7dac
je 0x46b3e8
mov ecx, 0x5f7dac
call fcn.00449940
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [0x5f7dac], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x5f7dbc], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x46b422
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46b418
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b56a
push edx
push ecx
call fcn.00537216
add esp, 8
mov edx, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
cmp edx, 8
jb 0x46b470
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46b466
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b56f
push edx
push ecx
call fcn.00537216
add esp, 8
cmp dword [0x5f7dc0], 8
mov eax, 0x5f7dac
push 0
cmovae eax, dword [0x5f7dac]
push SysReAllocString
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push 0
xorps xmm0, xmm0
mov dword [0x5f7da8], eax
movq qword [ebp - 0x38], xmm0
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x46b534
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46b4ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b574
push edx
push ecx
call fcn.00537216
add esp, 8
jmp 0x46b534
mov eax, dword [0x5f7da8]
cmp eax, 0xffffffff
je 0x46b534
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x5fd955], 0
mov dword [0x5f7da8], 0xffffffff
je 0x46b534
cmp dword [0x5f7dc0], 8
mov eax, 0x5f7dac
cmovae eax, dword [0x5f7dac]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x5ffaf4], 0
mov ecx, 0x5ffb10
je 0x46b549
mov eax, 1
jmp 0x46b54b
xor eax, eax
xchg dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00536fd5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00552cb1
call fcn.00552cb1
call fcn.00552cb1
int3