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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x706b99
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x230
mov eax, dword [0x7c0ab4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x198], ecx
push 0x100
lea eax, [ebp - 0x118]
mov dword [ebp - 0x19c], 0
push 0
push eax
call fcn.006d4310
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ecx
lea edx, [ebp - 0x118]
mov ecx, 0x10
mov esi, eax
call fcn.0047a5a0
add esp, 4
push eax
push edi
mov edi, dword [ebp - 0x198]
push esi
push str._n_Trace_Log_File._Pid_u__0x_X_._Started__ls.__n_Version___12.2.0.4376.__n_n
push edi
call fcn.0047a470
xor eax, eax
mov dword [ebp - 0x168], 0
add esp, 0x14
mov dword [ebp - 0x164], 7
mov word [ebp - 0x178], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], 7
mov word [ebp - 0x130], ax
push 0x14
push str.Microsoft_Windows_NT
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 1
call fcn.00449180
sub esp, 8
lea ecx, [ebp - 0x240]
call fcn.00457260
mov byte [ebp - 4], 2
call fcn.00465ea0
mov esi, dword [0x7cc62c]
call fcn.00465ea0
mov eax, dword [0x7cc634]
lea ecx, [ebp - 0x240]
push esi
push eax
call fcn.00457aa0
push ecx
mov edx, 0x790004
mov ecx, eax
call fcn.0047c190
add esp, 4
mov ecx, eax
call fcn.00457aa0
call fcn.00465ea0
cmp dword [0x7cc630], 0
je 0x47a84e
call fcn.00465ea0
mov eax, dword [0x7cc630]
mov edx, 0x790008
push eax
push ecx
lea ecx, [ebp - 0x240]
call fcn.0047c190
add esp, 4
mov ecx, eax
call fcn.00457aa0
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00458f40
lea ecx, [ebp - 0x130]
call fcn.00449120
movups xmm0, xmmword [ebp - 0x190]
lea ecx, [ebp - 0x240]
movups xmmword [ebp - 0x130], xmm0
movq xmm0, qword [ebp - 0x180]
movq qword [ebp - 0x120], xmm0
mov byte [ebp - 4], 1
call fcn.00456da0
push 0
push 0
call fcn.006d6eee
mov edx, eax
mov dword [ebp - 0x138], 0
mov ecx, edx
mov dword [ebp - 0x134], 7
add esp, 8
xor eax, eax
mov word [ebp - 0x148], ax
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47a8d0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x148]
call fcn.00449180
call fcn.0047a680
mov esi, eax
mov dword [ebp - 0x198], 0
lea eax, [ebp - 0x198]
test esi, esi
push eax
setne byte [ebp - 0x191]
call fcn.006e6fde
sub dword [ebp - 0x198], esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 7
mov word [ebp - 0x160], ax
mov dword [ebp - 0x19c], 3
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x1a0], eax
lea eax, [ebp - 0x1a8]
mov byte [ebp - 4], 5
push eax
push 0x105
mov ecx, eax
call fcn.00455f60
mov ecx, dword [ebp - 0x1a4]
mov eax, dword [ebp - 0x1a8]
sub ecx, eax
sar ecx, 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [ebp - 0x1a4]
mov edx, dword [ebp - 0x1a8]
sub ecx, edx
sar ecx, 1
cmp eax, ecx
jbe 0x47a9dd
lea ecx, [ebp - 0x1a8]
inc eax
push ecx
push eax
call fcn.00455f60
mov ecx, dword [ebp - 0x1a4]
mov eax, dword [ebp - 0x1a8]
sub ecx, eax
sar ecx, 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, dword [ebp - 0x1a8]
test eax, eax
je 0x47aa08
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47a9d0
jmp 0x47a9f1
test eax, eax
je 0x47aa08
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47a9e6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x160]
call fcn.00449180
mov edx, dword [ebp - 0x1a8]
test edx, edx
je 0x47aa3f
mov ecx, dword [ebp - 0x1a0]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x47aa35
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47ac9a
push ecx
push edx
call fcn.006d0b31
add esp, 8
cmp dword [ebp - 0x14c], 8
lea eax, [ebp - 0x160]
lea esi, [ebp - 0x148]
mov dword [ebp - 0x19c], 0x7900f0
cmovae eax, dword [ebp - 0x160]
lea edx, [ebp - 0x130]
cmp dword [ebp - 0x134], 8
lea ecx, [ebp - 0x178]
push eax
cmovae esi, dword [ebp - 0x148]
cmp dword [ebp - 0x11c], 8
mov eax, dword [ebp - 0x198]
cmovae edx, dword [ebp - 0x130]
cmp dword [ebp - 0x164], 8
cmovae ecx, dword [ebp - 0x178]
neg eax
sub esp, 8
cmp byte [ebp - 0x191], 0
movd xmm0, eax
mov eax, 0x7900e8
cvtdq2pd xmm0, xmm0
cmove eax, dword [ebp - 0x19c]
divsd xmm0, qword [0x7a6808]
movsd qword [esp], xmm0
push eax
push esi
push edx
push ecx
push str.System:__ls__Version:__ls__Locale:__ls__Timezone___ls_:__lf__CurrentDir:_ls_n_n
push edi
call fcn.0047a470
mov edx, dword [ebp - 0x14c]
add esp, 0x24
cmp edx, 8
jb 0x47ab1f
mov ecx, dword [ebp - 0x160]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47ab15
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47ac9f
push edx
push ecx
call fcn.006d0b31
add esp, 8
push str.Environment:_n
push edi
call fcn.0047a470
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0x19c], eax
test eax, eax
je 0x47ab72
mov esi, eax
nop
cmp word [esi], 0
je 0x47ab66
push esi
push str._____ls_n
push edi
call fcn.0047a470
add esp, 0xc
push esi
call fcn.006e550d
add esp, 4
lea esi, [esi + eax*2]
add esi, 2
jne 0x47ab40
push dword [ebp - 0x19c]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0x7900e4
push edi
call fcn.0047a470
push edi
call fcn.006e4cbb
mov edx, dword [ebp - 0x134]
add esp, 0xc
cmp edx, 8
jb 0x47abc6
mov ecx, dword [ebp - 0x148]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47abbc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47aca4
push edx
push ecx
call fcn.006d0b31
add esp, 8
mov edx, dword [ebp - 0x11c]
xor eax, eax
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 7
mov word [ebp - 0x148], ax
cmp edx, 8
jb 0x47ac23
mov ecx, dword [ebp - 0x130]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47ac19
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47aca9
push edx
push ecx
call fcn.006d0b31
add esp, 8
mov edx, dword [ebp - 0x164]
xor eax, eax
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 7
mov word [ebp - 0x130], ax
cmp edx, 8
jb 0x47ac7c
mov ecx, dword [ebp - 0x178]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47ac72
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47acae
push edx
push ecx
call fcn.006d0b31
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006d0856
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.006d79b8
call fcn.006d79b8
call fcn.006d79b8
call fcn.006d79b8
call fcn.006d79b8
int3