Function at 0x4a67b0
Capabilities:
Create directory
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x51a0cb
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x56a260]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56a260]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov edi, dword [esp + 0x268]
xor ebp, ebp
mov dword [esp + 0x14], ebp
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebp
call fcn.00402700
cmp eax, 1
mov ebx, dword [esp + 0x14]
jne 0x4a6812
mov dword [ebx - 4], ebp
mov eax, dword [esp + 0x26c]
cmp eax, ebp
mov dword [esp + 0x260], ebp
jne 0x4a6833
call fcn.004a66f0
neg eax
sbb eax, eax
and eax, 2
add eax, 7
cmp eax, 9
jge 0x4a68b6
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0x104
lea eax, [esp + 0x50]
push eax
push str.APPDATA
mov word [esp + 0x58], bp
call esi
test eax, eax
ja 0x4a68a5
push 0x104
lea ecx, [esp + 0x50]
push ecx
push str.TEMP
call esi
test eax, eax
ja 0x4a68a5
push 0x104
lea edx, [esp + 0x50]
push edx
push 0x532e84
call esi
test eax, eax
ja 0x4a68a5
push str.c:_temp
lea eax, [esp + 0x50]
push 0x104
push eax
call fcn.004f2e08
add esp, 0xc
push ebp
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, [esp + 0x4c]
push edx
mov ecx, edi
call fcn.00401f50
jmp 0x4a69ea
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push str.SHGetKnownFolderPath
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
je 0x4a69bb
cmp dword [esp + 0x270], ebp
mov ecx, 0xa520a1a4
mov dword [esp + 0x3c], ecx
mov dl, 0x16
mov word [esp + 0x20], 0x1780
mov word [esp + 0x22], 0x4ff6
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x26], dl
mov dword [esp + 0x40], ecx
mov byte [esp + 0x24], 0xbd
mov byte [esp + 0x25], 0x18
mov byte [esp + 0x27], 0x73
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x2b], dl
mov byte [esp + 0x28], 0x43
mov byte [esp + 0x29], 0xc5
mov byte [esp + 0x2a], 0xaf
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x28]
mov edx, 0xf1b32785
mov word [esp + 0x30], 0x6fba
mov word [esp + 0x32], 0x4fcf
mov byte [esp + 0x34], 0x9d
mov byte [esp + 0x35], 0x55
mov byte [esp + 0x36], 0x7b
mov byte [esp + 0x37], 0x8e
mov byte [esp + 0x38], 0x7f
mov byte [esp + 0x39], 0x15
mov byte [esp + 0x3a], 0x70
mov byte [esp + 0x3b], 0x91
mov dword [esp + 0x48], ecx
jne 0x4a698e
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
lea ecx, [esp + 0x18]
push ecx
push ebp
push ebp
lea edx, [esp + 0x48]
push edx
call eax
test eax, eax
jl 0x4a69b4
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x1c]
call fcn.00402660
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp ebx, ebp
mov dword [edi], ebp
je 0x4a69c6
mov esi, dword [ebx - 4]
jmp 0x4a69c8
xor esi, esi
push esi
mov ecx, edi
call fcn.00402700
cmp eax, 1
jne 0x4a69ea
mov edx, dword [edi]
push ebx
lea ecx, [esi + 1]
push ecx
push edx
call fcn.004f2e08
mov eax, dword [edi]
add esp, 0xc
mov dword [eax - 4], esi
cmp ebx, ebp
je 0x4a69fa
add ebx, 0xfffffff8
push ebx
call fcn.004d37ab
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.004f2ac1
add esp, 0x250
ret