Function at 0x4138c0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x628]
sub esp, 0x628
push 0xffffffffffffffff
push 0x4330e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x441008]
xor eax, ebp
mov dword [ebp + 0x624], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x441a9c
lea ecx, [ebp]
mov dword [ebp], 0
call fcn.004046e0
mov dword [ebp - 4], 0
mov ecx, 0x441aa0
call fcn.00402ba5
test al, al
jne 0x413ad3
call fcn.00402cf0
cmp esi, eax
je 0x413abd
call fcn.00402cf0
mov edx, eax
mov dword [ebp - 0x14], eax
cmp dword [eax + 0x14], 8
jb 0x41394a
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
mov ebx, dword [eax + 0x10]
mov ecx, esi
call fcn.00402cf0
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x18], eax
cmp ebx, eax
ja 0x41398e
mov esi, edi
cmp eax, 8
jb 0x413969
mov esi, dword [edi]
push ebx
mov ecx, esi
mov dword [edi + 0x10], ebx
call fcn.00402e52
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [esi + ebx*2]
lea edx, [ebp - 0x14]
call fcn.00402e4b
jmp 0x413abd
call fcn.00402e28
cmp ebx, eax
ja 0x413df5
call fcn.00402e28
mov edx, eax
mov ecx, esi
mov dword [ebp - 0x1c], edx
call fcn.00402cf0
mov ecx, ebx
or ecx, 7
mov dword [ebp - 0x24], ecx
cmp ecx, edx
ja 0x4139dd
mov esi, dword [eax + 0x14]
mov ecx, esi
shr ecx, 1
mov eax, edx
sub eax, ecx
cmp esi, eax
ja 0x4139da
lea eax, [ecx + esi]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x24]
call fcn.00402dc3
mov edx, dword [eax]
mov dword [ebp - 0x1c], edx
lea eax, [edx + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x4139ef
or ecx, 0xffffffff
jmp 0x4139f7
cmp ecx, 0x1000
jb 0x413a25
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004226e9
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x413a1f
mov edx, dword [ebp - 0x1c]
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x413a39
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
test ecx, ecx
je 0x413a37
push ecx
call fcn.004226e9
mov edx, dword [ebp - 0x1c]
add esp, 4
jmp 0x413a39
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [edi + 0x14], edx
mov edx, dword [ebp - 0x14]
mov dword [edi + 0x10], ebx
mov esi, dword [ebp - 0x10]
mov ecx, esi
push ebx
call fcn.00402dcd
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [esi + ebx*2]
lea edx, [ebp - 0x14]
call fcn.00402e4b
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x413aa1
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x413a90
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413a1f
mov eax, edx
push ecx
push eax
call fcn.00422996
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [edi], eax
jmp 0x413abd
mov ecx, edi
call fcn.00402cf0
mov edx, eax
call fcn.00402af0
lea ecx, [ebp - 0x10]
mov edx, eax
call fcn.00402cf0
mov ecx, dword [eax]
mov dword [edx], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00404710
mov al, 1
jmp 0x413dd2
push 0x20c
lea eax, [ebp + 0x418]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x418]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x413dc1
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x622], ax
lea eax, [ebp + 4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 4]
push 0x208
push eax
lea eax, [ebp + 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x413c5c
test eax, eax
je 0x413c5c
add eax, eax
cmp eax, 0x412
jae 0x413dff
xor ecx, ecx
mov word [ebp + eax + 4], cx
lea ecx, [ebp + 4]
call fcn.00402de3
mov ecx, esi
mov ebx, eax
call fcn.00402cf0
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x1c], eax
cmp ebx, eax
ja 0x413bad
mov esi, edi
cmp eax, 8
jb 0x413b85
mov esi, dword [edi]
push ebx
lea edx, [ebp + 4]
mov dword [edi + 0x10], ebx
mov ecx, esi
call fcn.00402e52
add esp, 4
mov dword [ebp - 0x18], 0
lea ecx, [esi + ebx*2]
lea edx, [ebp - 0x18]
call fcn.00402e4b
jmp 0x413abd
call fcn.00402e28
cmp ebx, eax
ja 0x413dfa
call fcn.00402e28
mov esi, eax
call fcn.00402cf0
mov ecx, ebx
or ecx, 7
mov dword [ebp - 0x24], ecx
cmp ecx, esi
ja 0x413bf4
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x413bf4
lea eax, [ecx + edx]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x24]
call fcn.00402dc3
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x413c06
or ecx, 0xffffffff
jmp 0x413c0e
cmp ecx, 0x1000
jb 0x413c3d
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004226e9
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x413a1f
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
lea edx, [ebp + 4]
mov dword [eax - 4], ecx
jmp 0x413d51
test ecx, ecx
je 0x413c52
push ecx
call fcn.004226e9
add esp, 4
lea edx, [ebp + 4]
jmp 0x413d51
xor eax, eax
lea edx, [ebp + 4]
jmp 0x413d51
lea ecx, [ebp + 0x418]
call fcn.00402de3
mov ecx, esi
mov ebx, eax
call fcn.00402cf0
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x1c], eax
cmp ebx, eax
ja 0x413cb0
mov esi, edi
cmp eax, 8
jb 0x413c85
mov esi, dword [edi]
push ebx
lea edx, [ebp + 0x418]
mov dword [edi + 0x10], ebx
mov ecx, esi
call fcn.00402e52
add esp, 4
mov dword [ebp - 0x18], 0
lea ecx, [esi + ebx*2]
lea edx, [ebp - 0x18]
call fcn.00402e4b
jmp 0x413abd
call fcn.00402e28
cmp ebx, eax
ja 0x413e04
call fcn.00402e28
mov esi, eax
call fcn.00402cf0
mov ecx, ebx
or ecx, 7
mov dword [ebp - 0x24], ecx
cmp ecx, esi
ja 0x413cf7
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x413cf7
lea eax, [edx + ecx]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x24]
call fcn.00402dc3
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x413d09
or ecx, 0xffffffff
jmp 0x413d11
cmp ecx, 0x1000
jb 0x413d3a
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004226e9
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x413a1f
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x413d4b
test ecx, ecx
je 0x413d49
push ecx
call fcn.004226e9
add esp, 4
jmp 0x413d4b
xor eax, eax
lea edx, [ebp + 0x418]
mov dword [ebp - 0x10], eax
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [ebp - 0x10]
mov ecx, esi
push ebx
call fcn.00402dcd
add esp, 4
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x20]
lea ecx, [esi + ebx*2]
call fcn.00402e4b
mov ecx, dword [ebp - 0x1c]
cmp ecx, 8
jb 0x413aa1
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x413dad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413a1f
mov eax, edx
push ecx
push eax
call fcn.00422996
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [edi], eax
jmp 0x413abd
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00404710
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x624]
xor ecx, ebp
call fcn.004226d8
lea esp, [ebp + 0x628]
pop ebp
ret
call fcn.00403000
call fcn.00403000
call fcn.00422e31
call fcn.00403000
int3