Function at 0x10038630
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x10104610]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1010a728]
push ebx
push esi
test eax, eax
je 0x1003866d
push eax
push 0x100ec558
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.100360a0
add esp, 0x10
jmp 0x10038750
mov eax, dword [0x1010a718]
test eax, eax
jne 0x1003869f
lea ecx, [ebp - 0x228]
push ecx
mov dword [ebp - 0x228], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [ebp - 0x218], 2
sete al
inc eax
mov dword [0x1010a718], eax
cmp eax, 2
jne 0x100386e9
lea edx, [ebp - 0x318]
push edx
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x318]
push eax
call fcn.10037ca0
mov esi, eax
add esp, 4
test esi, esi
je 0x100388b5
push esi
push 0x100ec558
lea ecx, [ebp - 0x110]
push ecx
push 0xe6
call fcn.100360a0
push esi
jmp 0x10038748
lea edx, [ebp - 0x218]
push edx
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x218]
push eax
call fcn.10037d10
mov esi, eax
add esp, 4
test esi, esi
je 0x100388b5
push esi
call fcn.10037ca0
add esp, 4
push esi
mov ebx, eax
call fcn.100b0326
add esp, 4
test ebx, ebx
je 0x100388b5
push ebx
push 0x100ec558
lea ecx, [ebp - 0x110]
push ecx
push 0xe6
call fcn.100360a0
push ebx
call fcn.100b0326
add esp, 0x14
cmp byte [ebp - 0x110], 0
lea eax, [ebp - 0x110]
je 0x10038766
nop
inc eax
cmp byte [eax], 0
jne 0x10038760
lea edx, [ebp - 0x110]
sub eax, edx
and eax, 0x3fffffff
jbe 0x10038781
mov ecx, edx
cmp byte [ecx + eax - 1], 0x5c
jne 0x10038781
dec eax
jne 0x10038777
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
push eax
push str._setilqs_
push edi
push 0xe7
call fcn.100360a0
add esp, 0x10
cmp byte [edi], 0
mov esi, edi
je 0x100387b6
lea ebx, [ebx]
inc esi
cmp byte [esi], 0
jne 0x100387b0
sub esi, edi
and esi, 0x3fffffff
cmp dword [0x1010589c], 0
lea ecx, [edi + esi]
mov ebx, 0x14
mov dword [ebp - 0x320], ecx
jne 0x100387e1
mov dword [ebp - 0x31c], 0
jmp 0x10038802
push 5
call dword [0x101058d8]
add esp, 4
mov dword [ebp - 0x31c], eax
test eax, eax
je 0x10038802
mov edx, eax
push edx
call dword [0x101058e0]
add esp, 4
call fcn.10036100
mov ecx, dword [ebp - 0x320]
mov byte [ecx], al
inc ecx
dec ebx
mov dword [ebp - 0x320], ecx
jne 0x10038802
mov eax, dword [ebp - 0x31c]
test eax, eax
je 0x1003882d
push eax
call dword [0x101058e8]
add esp, 4
mov ecx, 4
movzx eax, byte [edi + esi]
xor edx, edx
mov ebx, 0x3e
div ebx
add esi, 5
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 5], al
movzx eax, byte [edi + esi - 4]
xor edx, edx
div ebx
movzx eax, byte [edi + esi - 3]
movzx edx, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 4], dl
xor edx, edx
div ebx
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 3], al
movzx eax, byte [edi + esi - 2]
xor edx, edx
div ebx
movzx eax, byte [edi + esi - 1]
movzx edx, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 2], dl
xor edx, edx
div ebx
dec ecx
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 1], al
jne 0x10038832
mov byte [edi + esi], cl
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100afa0c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 7
pop ebx
call fcn.100afa0c
mov esp, ebp
pop ebp
ret