Function at 0x46fe50
Capabilities:
Create directory
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4917f7
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x4b6798]
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, 7
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], ax
mov dword [ebp - 4], ebx
xor ecx, ecx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
lea edx, [ebp - 0x218]
push edx
push ebx
push ebx
push 0x1c
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jl 0x47009d
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46fee0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x250]
call fcn.00409bc0
push 0xc
push str.IE_TabLog_
mov eax, esi
call fcn.004046f0
mov eax, dword [ebp - 0x250]
mov ebx, 8
cmp dword [ebp - 0x23c], ebx
jae 0x46ff24
mov eax, esi
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0xb
push str.ietabhelper
lea eax, [ebp - 0x250]
call fcn.004046f0
push str..wrn.txt
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x26c]
push ecx
call fcn.0045e600
add esp, 0xc
mov edi, eax
lea esi, [ebp - 0x234]
mov byte [ebp - 4], 2
call fcn.004030e0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x258], ebx
jb 0x46ff88
mov edx, dword [ebp - 0x26c]
push edx
call fcn.004736d0
add esp, 4
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jae 0x46ff9c
lea eax, [ebp - 0x234]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 1
push 0
push 3
push 0xc0000004
push eax
call ebx
push str..err.txt
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x26c]
push ecx
call fcn.0045e600
add esp, 0xc
mov edi, eax
lea esi, [ebp - 0x234]
mov byte [ebp - 4], 3
call fcn.004030e0
mov esi, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x258], esi
jb 0x470000
mov edx, dword [ebp - 0x26c]
push edx
call fcn.004736d0
add esp, 4
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], esi
jae 0x470014
lea eax, [ebp - 0x234]
push 0
push 0
push 1
push 0
push 3
push 0xc0000004
push eax
call ebx
push str..asrt.txt
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x26c]
push ecx
call fcn.0045e600
add esp, 0xc
mov edi, eax
lea esi, [ebp - 0x234]
mov byte [ebp - 4], 4
call fcn.004030e0
mov edi, 8
cmp dword [ebp - 0x258], edi
jb 0x47006e
mov edx, dword [ebp - 0x26c]
push edx
call fcn.004736d0
add esp, 4
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], edi
jae 0x470082
lea eax, [ebp - 0x234]
push 0
push 0
push 1
push 0
push 3
push 0xc0000004
push eax
call ebx
mov esi, 7
xor ebx, ebx
jmp 0x4700a2
mov edi, 8
cmp dword [ebp - 0x220], edi
jb 0x4700b9
mov eax, dword [ebp - 0x234]
push eax
call fcn.004736d0
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
cmp dword [ebp - 0x23c], edi
jb 0x4700e5
mov edx, dword [ebp - 0x250]
push edx
call fcn.004736d0
add esp, 4
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.004736db
mov esp, ebp
pop ebp
ret