Function at 0x43ad30
Capabilities:
Check if file exists
Create directory
Query environment variable
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56093b
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x5b0514]
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 edi, dword [0x5ba980]
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
lea edx, [ebp - 0x438]
mov dword [ebp - 4], eax
call fcn.00417420
lea edx, [edi + 0x568]
mov ecx, 0x10
call fcn.00413450
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005219d0
mov ebx, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
lea eax, [ebp - 0x218]
add esp, 0xc
push 0x103
push eax
push str.TEMP
call ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43ae13
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
lea esi, [edi + 0x550]
push ecx
push eax
mov ecx, esi
call fcn.00410900
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005219d0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push eax
push str.USERPROFILE
call ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.UIDowner
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43ae90
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
add edi, 0x580
push ecx
push eax
mov ecx, edi
call fcn.00410900
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x43aebe
mov eax, dword [edi]
push eax
call fcn.0052dacc
add esp, 4
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x43aed1
mov eax, dword [edi]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
jne 0x43af31
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.005219d0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push eax
push str.TEMP
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43af13
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00410900
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x43af3b
mov eax, dword [esi]
push eax
call fcn.0052dacc
add esp, 4
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x43af4e
mov eax, dword [esi]
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
test eax, eax
je 0x43af6c
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x43af65
mov eax, dword [esi]
push eax
call edi
test eax, eax
jne 0x43afd1
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.005219d0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x103
push eax
push str.TEMP
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x43afa3
mov eax, dword [esi]
push eax
call edi
test eax, eax
je 0x43afd8
lea edx, [ebp - 0x420]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x43afb3
sub edx, ecx
lea eax, [ebp - 0x420]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.00410900
mov esi, 1
jmp 0x43afda
xor esi, esi
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x43b016
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43b00c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43b034
push edx
push ecx
call fcn.00497cc1
add esp, 8
mov eax, esi
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.00497cb0
mov esp, ebp
pop ebp
ret
call fcn.00524999
int3