Function at 0x41a140
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x640]
sub esp, 0x640
push 0xffffffffffffffff
push 0x5170c0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x55a144]
xor eax, ebp
mov dword [ebp + 0x63c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x648]
mov edi, dword [ebp + 0x64c]
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 7
mov word [ebp], ax
mov dword [ebp - 4], eax
mov dword [ebp + 0x18], eax
mov eax, dword [0x55dffc]
mov dword [ebp + 0x18], 0x55dffc
test eax, eax
je 0x41a1c7
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 1
mov ecx, dword [0x55aae0]
test ecx, ecx
je 0x41a1ed
cmp dword [0x55aae4], 8
mov eax, 0x55aad0
cmovae eax, dword [0x55aad0]
jmp 0x41a2a5
push 0x20c
lea eax, [ebp + 0x430]
push 0
push eax
call fcn.004f44c0
add esp, 0xc
lea eax, [ebp + 0x430]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x41a392
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x63a], ax
lea eax, [ebp + 0x1c]
push eax
call fcn.004f44c0
add esp, 0xc
lea eax, [ebp + 0x1c]
push 0x208
push eax
lea eax, [ebp + 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x41a287
test eax, eax
je 0x41a287
add eax, eax
cmp eax, 0x412
jae 0x41a427
xor ecx, ecx
mov word [ebp + eax + 0x1c], cx
lea ecx, [ebp + 0x1c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a277
lea eax, [ebp + 0x1c]
jmp 0x41a2a1
lea ecx, [ebp + 0x430]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a290
lea eax, [ebp + 0x430]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea ecx, [ebp]
call fcn.00402410
mov byte [ebp - 4], 0
mov eax, dword [0x55dffc]
test eax, eax
je 0x41a2c3
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebx], 0
lea esi, [ebx + 4]
mov dword [ebp + 0x18], 0
je 0x41a2e0
mov ecx, esi
call fcn.00425110
test al, al
sete al
mov byte [ebx], al
mov edx, dword [ebp - 0x10]
lea ecx, [ebp]
push edi
call fcn.00425420
add esp, 4
test al, al
je 0x41a316
cmp esi, edi
je 0x41a30c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x41a301
mov eax, dword [edi]
push dword [edi + 0x10]
mov ecx, esi
push eax
call fcn.00402410
mov byte [ebx], 1
mov bl, 1
jmp 0x41a3af
push 0x20c
lea eax, [ebp + 0x430]
push 0
push eax
call fcn.004f44c0
add esp, 0xc
lea eax, [ebp + 0x430]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x41a3ad
xor eax, eax
lea edx, [ebp + 0x430]
mov word [ebp + 0x63a], ax
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41a360
sub edx, ecx
lea eax, [ebp + 0x430]
sar edx, 1
lea ecx, [ebp]
push edx
push eax
call fcn.00402410
push edi
push dword [ebp - 0x10]
lea eax, [ebp]
mov ecx, ebx
push eax
call fcn.0041a0e0
mov bl, al
jmp 0x41a3af
mov byte [ebp - 4], 0
mov eax, dword [0x55dffc]
test eax, eax
je 0x41a3a6
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp + 0x18], 0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x14]
cmp edx, 8
jb 0x41a3ec
mov ecx, dword [ebp]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a3e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a42c
push edx
push ecx
call fcn.004f14e5
add esp, 8
xor eax, eax
mov dword [ebp + 0x10], 0
mov word [ebp], ax
mov al, bl
mov dword [ebp + 0x14], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x63c]
xor ecx, ebp
call fcn.004f110c
lea esp, [ebp + 0x640]
pop ebp
ret 8
call fcn.004f1b1b
call fcn.004f74d9
int3