Function at 0x401190
Capabilities:
Get common file path

Disassembly:
sub esp, 0xc98
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xc94], eax
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, edx
xor eax, eax
mov dword [esp + 0x14], ebp
push edi
mov word [esi], ax
movzx ecx, word [ebp]
test cx, cx
je 0x4014ab
mov edi, dword [esp + 0xcac]
nop dword [eax]
cmp cx, 0x7b
jne 0x4011ec
xor ecx, ecx
lea eax, [esp + 0xa0]
mov word [esp + 0xa0], cx
jmp 0x401497
movzx ecx, word [ebp]
cmp ecx, 0x7d
jne 0x40147a
xor ecx, ecx
xor bl, bl
mov word [eax], cx
lea eax, [esp + 0xa0]
push 0x41bad0
push eax
mov byte [esp + 0x1f], bl
call fcn.0040946b
add esp, 8
test eax, eax
jne 0x401229
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov bl, 1
jmp 0x40129c
lea eax, [esp + 0xa0]
push 0x41badc
push eax
call fcn.0040946b
add esp, 8
test eax, eax
jne 0x4012ce
mov ebx, edi
call fcn.00405abe
cmp word [esi], 0
mov ecx, esi
mov eax, dword [eax]
mov edx, dword [eax]
je 0x40126a
nop dword [eax]
add ecx, 2
dec ebx
cmp word [ecx], 0
jne 0x401260
movzx eax, word [edx]
mov ebp, eax
test ax, ax
je 0x40128f
cmp ebx, 1
jb 0x4014cf
add edx, 2
mov word [ecx], ax
add ecx, 2
dec ebx
movzx eax, word [edx]
test ax, ax
jne 0x401274
mov ebp, dword [esp + 0x18]
xor eax, eax
mov word [ecx], ax
mov bl, byte [esp + 0x17]
cmp word [esi], 0
je 0x4012ac
add esi, 2
dec edi
cmp word [esi], 0
jne 0x4012a2
test bl, bl
je 0x4012c7
cmp word [esi - 2], 0x5c
jne 0x4012c7
sub esi, 2
xor eax, eax
inc edi
mov word [esi], ax
cmp word [esi - 2], 0x5c
je 0x4012b7
xor eax, eax
jmp 0x401497
lea eax, [esp + 0xa0]
push str.PROGRAM_BASE
push eax
call fcn.0040946b
add esp, 8
test eax, eax
jne 0x40135c
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4012f0
sub ecx, edx
mov eax, edi
sar ecx, 1
mov edx, str.PROGRAM
sub eax, ecx
mov ecx, esi
push eax
call fcn.00401190
add esp, 4
test al, al
je 0x4014cb
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401320
sub ecx, edx
sar ecx, 1
cmp ecx, 4
jb 0x40129c
add ecx, 0xfffffffc
push str..exe
lea ebx, [esi + ecx*2]
push ebx
call fcn.0040946b
add esp, 8
test eax, eax
jne 0x401298
mov word [ebx], ax
jmp 0x401298
lea eax, [esp + 0xa0]
push 0x41bb30
push eax
call fcn.0040946b
add esp, 8
test eax, eax
jne 0x4013a4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x41bacc
lea eax, [esp + 0x28]
push 0x80
push eax
call fcn.00401040
push edi
lea edx, [esp + 0x34]
mov ecx, esi
call fcn.004014e0
add esp, 0x14
jmp 0x40129c
lea eax, [esp + 0xa0]
push 0x41bb38
push eax
call fcn.0040946b
add esp, 8
test eax, eax
jne 0x4013da
push edi
lea edx, [eax + 0x28]
mov ecx, esi
call fcn.004010e0
add esp, 4
test al, al
je 0x4014cb
mov bl, 1
jmp 0x40129c
lea eax, [esp + 0xa0]
push str.CACHE_DIR
push eax
call fcn.0040946b
add esp, 8
test eax, eax
jne 0x401410
push edi
lea edx, [eax + 0x1c]
mov ecx, esi
call fcn.004010e0
add esp, 4
test al, al
je 0x4014cb
mov bl, 1
jmp 0x40129c
lea eax, [esp + 0xa0]
push str.TIME
push eax
call fcn.0040946b
add esp, 8
test eax, eax
jne 0x4014cb
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push dword [esp + 0x1c]
lea eax, [esp + 0x8a4]
push dword [esp + 0x1c]
push str._lld
push 0x400
push eax
call fcn.00401040
add esp, 0x14
lea edx, [esp + 0x8a0]
mov ecx, esi
push edi
call fcn.004014e0
add esp, 4
jmp 0x40129c
test eax, eax
je 0x401486
mov word [eax], cx
add eax, 2
jmp 0x401497
cmp edi, 1
jb 0x4014cb
mov word [esi], cx
add esi, 2
xor ecx, ecx
dec edi
mov word [esi], cx
movzx ecx, word [ebp + 2]
add ebp, 2
mov dword [esp + 0x18], ebp
test cx, cx
jne 0x4011d0
xor eax, eax
mov word [esi], ax
mov al, 1
mov ecx, dword [esp + 0xca4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402241
add esp, 0xc98
ret
xor al, al
jmp 0x4014b2
call fcn.004055d1
int3