Function at 0x10040f80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a0916
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x100c34c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x280], esi
mov ebx, dword [ebp + 8]
lea edi, [esi + 0x90]
mov dword [ebp - 0x284], 0
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x288], ebx
je 0x10041013
cmp dword [edi + 0x14], 8
jb 0x10040fdf
mov ecx, dword [edi]
jmp 0x10040fe1
mov ecx, edi
call fcn.10026180
cmp eax, 1
sete al
test al, al
je 0x10041013
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
push edi
mov ecx, ebx
mov word [ebx], ax
call fcn.10011ff0
jmp 0x1004134e
cmp byte [esi + 0x108], 0
je 0x10041178
cmp dword [esi + 0x100], 0
je 0x10041178
call fcn.1002b7b0
lea ecx, [ebp - 0x234]
test eax, eax
je 0x100410dc
call fcn.1003de30
mov esi, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x24c]
call fcn.1003da90
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x280]
add ecx, 0xf0
push ecx
mov edx, eax
lea ecx, [ebp - 0x264]
call fcn.100169e0
add esp, 4
mov byte [ebp - 4], 3
push esi
mov edx, eax
lea ecx, [ebp - 0x27c]
call fcn.10014d70
add esp, 4
mov byte [ebp - 4], 4
push eax
mov ecx, edi
call fcn.10010a30
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x27c]
call fcn.10010a70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x264]
call fcn.10010a70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24c]
call fcn.10010a70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.10010a70
jmp 0x10041330
call fcn.1003e010
mov esi, eax
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x24c]
call fcn.1003dc10
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x280]
add ecx, 0xf0
push ecx
mov edx, eax
lea ecx, [ebp - 0x264]
call fcn.100169e0
add esp, 4
mov byte [ebp - 4], 7
push esi
mov edx, eax
lea ecx, [ebp - 0x27c]
call fcn.10014d70
add esp, 4
mov byte [ebp - 4], 8
push eax
mov ecx, edi
call fcn.10010a30
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x27c]
call fcn.10010a70
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x264]
call fcn.10010a70
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24c]
call fcn.10010a70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.10010a70
jmp 0x10041330
lea ecx, [ebp - 0x27c]
call fcn.1003ee60
mov dword [ebp - 4], 9
mov edx, eax
lea ecx, [ebp - 0x264]
call fcn.1001c870
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x100411a3
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.10041380
mov byte [ebp - 4], 0xb
mov edx, eax
lea ecx, [ebp - 0x234]
call fcn.1001c9c0
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 0xc
cmp edi, eax
je 0x10041200
cmp dword [edi + 0x14], 8
jb 0x100411e5
push dword [edi]
call fcn.10076e4c
mov eax, dword [ebp - 0x280]
add esp, 4
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], cx
push eax
mov ecx, edi
call fcn.10011d10
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x220], 8
jb 0x1004121b
push dword [ebp - 0x234]
call fcn.10076e4c
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x238], 0x10
jb 0x10041253
push dword [ebp - 0x24c]
call fcn.10076e4c
add esp, 4
mov dword [ebp - 0x238], 0xf
mov dword [ebp - 0x23c], 0
mov byte [ebp - 0x24c], 0
mov byte [ebp - 4], 9
cmp dword [ebp - 0x250], 0x10
jb 0x10041289
push dword [ebp - 0x264]
call fcn.10076e4c
add esp, 4
mov dword [ebp - 0x250], 0xf
mov dword [ebp - 0x254], 0
mov byte [ebp - 0x264], 0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x268], 8
jb 0x100412bf
push dword [ebp - 0x27c]
call fcn.10076e4c
add esp, 4
xor eax, eax
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], 0
mov word [ebp - 0x27c], ax
cmp dword [esi + 0xa0], eax
jne 0x10041330
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.1007c850
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10041330
lea eax, [ebp - 0x21c]
push eax
mov ecx, edi
call fcn.10010ac0
mov edx, 0x5c
mov ecx, edi
call fcn.1001d3d0
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
push edi
mov ecx, ebx
mov word [ebx], ax
call fcn.10011ff0
mov dword [ebp - 4], 0
mov dword [ebp - 0x284], 1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10076e3d
mov esp, ebp
pop ebp
ret 4