Function at 0x431d00
Capabilities:
Check if file exists
Compare security identifiers
Create directory
Get common file path
Get token privileges

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 0x4bc32d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x280
mov eax, dword [0x4f6040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x288], 0
mov eax, dword fs:[0x2c]
mov edi, dword [eax]
mov eax, dword [0x4fa680]
cmp eax, dword [edi + 4]
jle 0x431daf
push 0x4fa680
call fcn.00486875
add esp, 4
cmp dword [0x4fa680], 0xffffffff
jne 0x431daf
mov dword [ebp - 4], 1
push 0x4c7950
call fcn.004867e4
add esp, 4
mov byte [ebp - 4], 0
push 0x4fa680
call fcn.00486824
add esp, 4
cmp dword [0x4f6bec], 0
jne 0x4324ac
mov dword [ebp - 0x228], 0x4d81f4
mov dword [ebp - 0x224], 0
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x228]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4c83a0]
lea ecx, [ebp - 0x228]
call esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x224]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x431e15
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x432445
xor esi, esi
mov dword [ebp - 0x248], esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x244]
push eax
push esi
push esi
push 1
push dword [ebp - 0x224]
mov dword [ebp - 0x244], esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x431e8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x432428
push dword [ebp - 0x244]
lea ecx, [ebp - 0x248]
call fcn.00427560
mov esi, dword [ebp - 0x248]
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x244]
push esi
push 1
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x432428
cmp dword [ebp - 0x244], 0
je 0x432428
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x240], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0x240]
mov word [ebp - 0x23c], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x43242e
push dword [ebp - 0x24c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x24c]
mov dword [ebp - 0x250], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov byte [ebp - 4], 2
push esi
call fcn.00486d53
add esp, 4
mov dword [ebp - 0x248], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x228], 0x4d81f4
test eax, eax
je 0x431f3a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x224], 0
cmp dword [ebp - 0x250], 1
jne 0x43246e
mov eax, dword [0x4fa684]
cmp eax, dword [edi + 4]
jle 0x431f9e
push 0x4fa684
call fcn.00486875
add esp, 4
cmp dword [0x4fa684], 0xffffffff
jne 0x431f9e
mov dword [ebp - 4], 4
push str.GetTempPath2W
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4fa688], eax
mov byte [ebp - 4], 0
push 0x4fa684
call fcn.00486824
add esp, 4
mov esi, dword [0x4fa688]
lea eax, [ebp - 0x220]
test esi, esi
je 0x431fc6
push eax
push 0x104
mov ecx, esi
call dword [0x4c83a0]
call esi
mov dword [ebp - 0x244], eax
jmp 0x431ff1
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.SystemTemp_
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.0049a15d
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43237e
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x278], eax
mov dword [ebp - 4], 5
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 6
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 4], 7
sub esp, 8
lea ecx, [ebp - 0x280]
push 0x4d939c
call fcn.00436cb0
sub esp, 8
lea ecx, [ebp - 0x280]
push str.S_1_5_32_544
call fcn.00436cb0
mov eax, dword [ebp - 0x260]
test eax, eax
je 0x4320a1
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x260], 0
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x4320bc
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x264], 0
mov eax, dword [ebp - 0x270]
test eax, eax
jle 0x43223e
mov edx, dword [ebp - 0x268]
xor ecx, ecx
mov dword [ebp - 0x248], ecx
test edx, edx
je 0x432138
lea eax, [ebp - 0x250]
mov dword [ebp - 0x24c], ecx
push eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x250], ecx
push eax
lea eax, [ebp - 0x24c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
jne 0x432119
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x25c], eax
jmp 0x43223e
cmp dword [ebp - 0x24c], 0
mov eax, dword [ebp - 0x270]
jne 0x432132
xor ecx, ecx
mov dword [ebp - 0x248], ecx
jmp 0x432138
mov ecx, dword [ebp - 0x248]
test eax, eax
jle 0x4324f1
lea edx, [ebp - 0x260]
push edx
push ecx
push dword [ebp - 0x274]
push eax
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x432164
mov dword [ebp - 0x25c], eax
jmp 0x43223e
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x432189
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x25c], eax
jmp 0x43223e
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x4321c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x43223e
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x264], 0
jmp 0x43223e
push 0
push dword [ebp - 0x260]
push 1
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x432206
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x43223e
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x264], 0
jmp 0x43223e
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x43223e
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x22c], 0xc
push eax
mov dword [ebp - 0x224], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], 9
xor esi, esi
mov edi, dword [ebp - 0x27c]
test edi, edi
jle 0x432290
test esi, esi
js 0x4324f1
cmp esi, dword [ebp - 0x27c]
jge 0x4324f1
mov eax, dword [ebp - 0x280]
lea ecx, [eax + esi*8]
mov eax, dword [ecx]
test eax, eax
je 0x43228b
cmp byte [ecx + 4], 0
push eax
je 0x432283
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x43228b
call fcn.00486d53
add esp, 4
inc esi
cmp esi, edi
jl 0x432251
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x4322ad
push eax
call fcn.00492832
add esp, 4
mov dword [ebp - 0x280], 0
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 0
test eax, eax
je 0x4322de
push eax
call fcn.00492832
add esp, 4
mov dword [ebp - 0x274], 0
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0
test eax, eax
je 0x432303
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x432314
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x274]
test eax, eax
je 0x432335
push eax
call fcn.00492832
add esp, 4
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x43236a
push eax
call fcn.00492832
add esp, 4
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 0
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x4324ac
xorps xmm0, xmm0
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], 0
movups xmmword [ebp - 0x238], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4323b3
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.0040bd30
mov dword [ebp - 4], 0xa
lea eax, [ebp - 0x238]
push eax
call fcn.00424550
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x224]
cmp ecx, 7
jbe 0x43248f
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x432485
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4324fb
jmp 0x432485
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 2
push esi
call fcn.00486d53
mov dword [ebp - 0x248], 0
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x228], 0x4d81f4
test eax, eax
je 0x43246e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x432384
push ecx
push edx
call fcn.00486428
add esp, 8
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
mov ecx, dword [ebp - 0x284]
push 0x4f6bdc
call fcn.00408100
mov dword [ebp - 4], 0
mov dword [ebp - 0x288], 1
mov eax, dword [ebp - 0x284]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048641a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x8000000b
call fcn.0040b700
call fcn.0048b78f
int3