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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009bdc1
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x100ef034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100fd210]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100fda40]
mov dword [ebp - 0x24c], ecx
cmp eax, dword [ecx + 4]
jle 0x1003aea4
push 0x100fda40
call fcn.10076c14
add esp, 4
cmp dword [0x100fda40], 0xffffffff
jne 0x1003aea4
mov dword [ebp - 4], 1
push 0x100b7780
call fcn.10076fef
mov byte [ebp - 4], 0
push 0x100fda40
call fcn.10076bca
add esp, 8
cmp dword [0x100efa80], 0
jne 0x1003b297
mov dword [ebp - 0x220], 0x100c7e5c
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x220]
mov eax, dword [ebp - 0x220]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x21c]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1003af00
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1003b199
xor esi, esi
mov dword [ebp - 0x244], esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x240]
push eax
push esi
push esi
push 1
push dword [ebp - 0x21c]
mov dword [ebp - 0x240], esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1003af77
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1003b17c
push dword [ebp - 0x240]
lea ecx, [ebp - 0x244]
call fcn.1003e460
mov esi, dword [ebp - 0x244]
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x240]
push esi
push 1
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1003b17c
cmp dword [ebp - 0x240], 0
je 0x1003b17c
lea eax, [ebp - 0x248]
mov dword [ebp - 0x238], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0x238]
mov word [ebp - 0x234], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1003b182
push dword [ebp - 0x248]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x248]
cmp eax, 1
sete byte [ebp - 0x239]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov byte [ebp - 4], 2
push esi
call fcn.1007686c
add esp, 4
mov dword [ebp - 0x244], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x220], 0x100c7e5c
test eax, eax
je 0x1003b029
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x21c], 0
cmp byte [ebp - 0x239], 0
je 0x1003b1c2
mov ecx, dword [ebp - 0x24c]
mov eax, dword [0x100fda44]
cmp eax, dword [ecx + 4]
jle 0x1003b093
push 0x100fda44
call fcn.10076c14
add esp, 4
cmp dword [0x100fda44], 0xffffffff
jne 0x1003b093
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 [0x100fda48], eax
mov byte [ebp - 4], 0
push 0x100fda44
call fcn.10076bca
add esp, 4
mov eax, dword [0x100fda48]
test eax, eax
je 0x1003b0ae
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call eax
mov esi, eax
jmp 0x1003b0db
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.SystemTemp_
mov esi, eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.1007c0c9
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003b1d6
lea ecx, [ebp - 0x288]
call fcn.10036b90
mov dword [ebp - 4], 5
sub esp, 8
lea ecx, [ebp - 0x288]
push str.S_1_5_18
call fcn.10036d80
sub esp, 8
lea ecx, [ebp - 0x288]
push str.S_1_5_32_544
call fcn.10036d80
lea ecx, [ebp - 0x288]
call fcn.100371d0
test eax, eax
je 0x1003b16b
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x224], 0xc
push eax
mov dword [ebp - 0x21c], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x288]
call fcn.10036c30
jmp 0x1003b1d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 2
push esi
call fcn.1007686c
mov dword [ebp - 0x244], 0
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x220], 0x100c7e5c
test eax, eax
je 0x1003b1c2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
test esi, esi
je 0x1003b297
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
movups xmmword [ebp - 0x230], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003b205
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.10037aa0
mov dword [ebp - 4], 6
lea eax, [ebp - 0x230]
push eax
call fcn.10047530
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x1003b27a
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003b270
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003b2d8
push ecx
push edx
call fcn.100768a6
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov ecx, dword [ebp - 0x250]
push 0x100efa70
call fcn.10038fd0
mov dword [ebp - 4], 0
mov dword [ebp - 0x254], 1
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007685e
mov esp, ebp
pop ebp
ret
call fcn.1007bd92
int3