Function at 0x62dc70
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x6342d0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
test edx, edx
je 0x62dcb8
mov dword [edx + 4], 0
mov dword [edx], 0
mov dword [edx + 8], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], 0
xor eax, eax
jmp 0x62dcf8
add eax, eax
add eax, 0x25
mov esi, eax
mov edx, ecx
mov ecx, 1
push 0xc5525c2a
push esi
call fcn.006323b0
add esp, 8
test bl, bl
je 0x62df2e
mov eax, dword [ebp - 0x20]
inc eax
mov ecx, eax
mov dword [ebp - 0x20], eax
cmp eax, 3
ja 0x62df2e
mov eax, dword [ebp - 0x20]
mov eax, dword [eax*4 + 0xaada90]
mov dword [ebp - 0x10], 2
push 0
push 0
mov dword [ebp - 0x64], eax
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x62dcf4
mov ecx, dword [ebp - 0x24]
lea eax, [ecx + ecx]
test ecx, ecx
mov ecx, 0xffffffff
cmovs eax, ecx
push eax
call fcn.00765503
add esp, 4
mov dword [ebp - 0x10], 3
push dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
push eax
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x62df21
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], 0
mov edi, dword [ebp - 0x24]
mov ecx, edi
mov edx, 0x98a05dde
call fcn.0053dab0
mov esi, eax
cmp eax, 7
jbe 0x62ddb0
sub esp, 0xc
movzx eax, byte [ebp - 0x48]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], esi
lea ecx, [ebp - 0x60]
call fcn.005318a0
jmp 0x62ddcc
mov dword [ebp - 0x50], esi
mov eax, esi
add eax, esi
push eax
push edi
lea eax, [ebp - 0x60]
push eax
call fcn.0077cce0
add esp, 0xc
mov word [ebp + esi*2 - 0x60], 0
mov ecx, dword [ebp - 0x24]
call fcn.0053ea00
mov esi, dword [ebp - 0x50]
mov bl, 1
test esi, esi
je 0x62deea
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
jb 0x62dded
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x28]
cmp edx, esi
jae 0x62de17
mov dword [ebp - 0x10], 4
sub esp, 0xc
movzx ecx, byte [ebp - 0x48]
mov byte [esp + 4], cl
mov dword [esp + 8], eax
mov dword [esp], esi
lea ecx, [ebp - 0x3c]
call fcn.005318a0
jmp 0x62de39
lea ecx, [esi + esi]
lea edi, [ebp - 0x3c]
cmp edx, 8
jb 0x62de25
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], esi
push ecx
push eax
push edi
call fcn.0077cce0
add esp, 0xc
mov word [edi + esi*2], 0
mov dword [ebp - 0x10], 4
cmp dword [ebp - 0x20], 2
jb 0x62de5c
push 0xaadaa8
push 0xaadaa0
lea eax, [ebp - 0x3c]
push eax
call fcn.00636700
add esp, 0xc
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0062e1b0
add esp, 8
test al, al
je 0x62ded0
mov eax, dword [ebp - 0x40]
test al, 1
je 0x62de97
cmp eax, 1
jne 0x62ded0
cmp dword [ebp - 0x48], 0
jne 0x62ded0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0062d9f0
add esp, 8
test al, al
je 0x62ded0
mov eax, dword [ebp - 0x40]
test al, 1
je 0x62debd
cmp eax, 1
jne 0x62ded0
cmp dword [ebp - 0x48], 0
jne 0x62ded0
xor ebx, ebx
jmp 0x62deea
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
jb 0x62dedc
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], 0
mov word [eax], 0
mov bl, 1
mov eax, dword [ebp - 0x4c]
cmp eax, 8
jb 0x62dcec
mov edx, dword [ebp - 0x60]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x62dcd9
mov ecx, dword [edx - 4]
add edx, 0xfffffffc
sub edx, ecx
cmp edx, 0x20
jb 0x62dcd0
jmp 0x62e0be
mov ecx, dword [ebp - 0x24]
call fcn.0053ea00
jmp 0x62dcf4
cmp dword [ebp - 0x2c], 0
jne 0x62dffe
mov dword [ebp - 0x10], 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x62e02d
lea edx, [eax + eax]
test eax, eax
mov dword [ebp - 0x20], eax
mov ecx, 0xffffffff
cmovns ecx, edx
push ecx
call fcn.00765503
mov ecx, dword [ebp - 0x20]
add esp, 4
mov dword [ebp - 0x10], 5
push ecx
mov dword [ebp - 0x20], eax
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x62e025
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
mov edx, 0x98a05dde
call fcn.0053dab0
mov esi, eax
mov ecx, dword [ebp - 0x28]
cmp ecx, eax
jae 0x62dfbb
sub esp, 0xc
movzx eax, byte [ebp - 0x60]
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], esi
lea ecx, [ebp - 0x3c]
call fcn.005318a0
jmp 0x62dfe0
mov eax, esi
add eax, esi
cmp ecx, 8
jb 0x62dfc9
mov edi, dword [ebp - 0x3c]
jmp 0x62dfcc
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x2c], esi
push eax
push ebx
push edi
call fcn.0077cce0
add esp, 0xc
mov word [edi + esi*2], 0
lea eax, [ebp - 0x3c]
push 0xaadaa8
push 0xaadaa0
push eax
call fcn.00636700
add esp, 0xc
mov ecx, dword [ebp - 0x20]
call fcn.0053ea00
movsd xmm0, qword [ebp - 0x2c]
mov edi, dword [ebp + 8]
movsd qword [edi + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x3c]
movups xmmword [edi], xmm0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x20]
call fcn.0053ea00
mov dword [ebp - 0x10], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test eax, eax
jne 0x62e0ca
cmp dword [ebp + 0xc], 0
je 0x62e061
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], 0
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x62e012
mov edx, dword [ebp - 0x3c]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x62e0a6
mov ecx, dword [edx - 4]
add edx, 0xfffffffc
sub edx, ecx
cmp edx, 0x20
jae 0x62e0f7
add eax, eax
add eax, 0x25
mov esi, eax
mov edx, ecx
mov ecx, 1
push 0xc5525c2a
push esi
call fcn.006323b0
add esp, 8
jmp 0x62e012
mov dword [ebp - 0x10], 0
call fcn.00748ef1
mov ecx, 1
mov edx, 1
push 0x4b6a45d4
push 0
push 0
call fcn.00632ed0
add esp, 0xc
push eax
push dword [ebp + 0xc]
push esi
call fcn.0063cb90
add esp, 0xc
jmp 0x62e061
mov dword [ebp - 0x10], 1
call fcn.00748ef1
nop word cs:[eax + eax]
push ebp
sub esp, 0xc
add ebp, 0xc
mov ecx, dword [ebp - 0x24]
call fcn.0053ea00
add esp, 0xc
pop ebp
ret