Function at 0x42e870
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440f96
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x456b38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
lea ecx, [ebp - 0x450]
call fcn.00403b60
lea eax, [ebp - 0x450]
mov dword [ebp - 4], 0
push eax
call fcn.0042ef50
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x42eacf
xor eax, eax
mov dword [ebp - 0x438], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
lea edx, [ecx + 2]
mov word [ebp - 0x438], ax
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e920
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.00402150
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 1
push eax
call fcn.0042ef50
mov edx, dword [ebp - 0x438]
lea ebx, [ebp - 0x438]
mov ecx, dword [ebp - 0x428]
lea esi, [ebp - 0x450]
mov eax, dword [ebp - 0x440]
add esp, 4
cmp dword [ebp - 0x424], 8
cmovae ebx, edx
cmp dword [ebp - 0x43c], 8
mov dword [ebp - 0x454], ebx
cmovae esi, dword [ebp - 0x450]
mov dword [ebp - 0x45c], esi
cmp ecx, eax
ja 0x42ea8f
test ecx, ecx
je 0x42ea48
sub eax, ecx
mov ecx, esi
inc eax
lea edx, [esi + eax*2]
mov dword [ebp - 0x458], edx
movzx eax, word [ebx]
sub edx, ecx
sar edx, 1
mov edi, 0
movzx esi, ax
je 0x42e9e4
movzx eax, word [ecx]
cmp ax, si
je 0x42e9e2
mov edi, edi
cmp edx, 1
je 0x42e9e4
movzx eax, word [ecx + 2]
add ecx, 2
dec edx
cmp ax, si
jne 0x42e9d0
mov edi, ecx
mov ecx, edi
test ecx, ecx
je 0x42ea89
movzx edx, word [ecx]
mov eax, ebx
movzx esi, word [ebx]
mov edi, dword [ebp - 0x428]
cmp dx, si
jb 0x42ea2a
mov ebx, ecx
sub ebx, dword [ebp - 0x454]
cmp dx, si
ja 0x42ea24
cmp edi, 1
je 0x42ea35
movzx edx, word [ebx + eax + 2]
add eax, 2
dec edi
movzx esi, word [eax]
cmp dx, si
jae 0x42ea0c
mov ebx, dword [ebp - 0x454]
mov edx, dword [ebp - 0x458]
add ecx, 2
jmp 0x42e9b5
sub ecx, dword [ebp - 0x45c]
mov edx, dword [ebp - 0x438]
sar ecx, 1
cmp ecx, 0xffffffff
je 0x42ea8f
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x42ec8a
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42ea78
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42eabf
push ecx
push edx
call fcn.00438e9f
add esp, 8
mov bl, 1
jmp 0x42ecd2
mov edx, dword [ebp - 0x438]
mov eax, dword [ebp - 0x424]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x42eacf
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42eac5
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42eac5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00438e9f
add esp, 8
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
je 0x42ecd0
xor eax, eax
mov dword [ebp - 0x438], 0
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
lea edx, [ecx + 2]
mov word [ebp - 0x438], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42eb30
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.00402150
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 2
push eax
call fcn.0042ef50
mov edx, dword [ebp - 0x438]
lea ebx, [ebp - 0x438]
mov edi, dword [ebp - 0x428]
lea esi, [ebp - 0x450]
mov eax, dword [ebp - 0x440]
add esp, 4
cmp dword [ebp - 0x424], 8
cmovae ebx, edx
cmp dword [ebp - 0x43c], 8
mov dword [ebp - 0x454], ebx
cmovae esi, dword [ebp - 0x450]
mov dword [ebp - 0x458], esi
cmp edi, eax
ja 0x42ec94
test edi, edi
je 0x42ec54
sub eax, edi
inc eax
lea ecx, [esi + eax*2]
mov eax, esi
mov dword [ebp - 0x45c], ecx
movzx edx, word [ebx]
sub ecx, eax
sar ecx, 1
mov esi, 0
movzx edx, dx
je 0x42ebf0
cmp word [eax], dx
je 0x42ebee
jmp 0x42ebe0
cmp ecx, 1
je 0x42ebf0
add eax, 2
dec ecx
cmp word [eax], dx
jne 0x42ebe0
mov esi, eax
mov eax, esi
test eax, eax
je 0x42ec8e
movzx edx, word [eax]
mov ecx, ebx
movzx esi, word [ebx]
cmp dx, si
jb 0x42ec30
mov ebx, eax
sub ebx, dword [ebp - 0x454]
cmp dx, si
ja 0x42ec2a
cmp edi, 1
je 0x42ec41
movzx edx, word [ecx + ebx + 2]
add ecx, 2
dec edi
movzx esi, word [ecx]
cmp dx, si
jae 0x42ec12
mov ebx, dword [ebp - 0x454]
mov edi, dword [ebp - 0x428]
add eax, 2
mov ecx, dword [ebp - 0x45c]
jmp 0x42ebc5
sub eax, dword [ebp - 0x458]
mov edx, dword [ebp - 0x438]
sar eax, 1
cmp eax, 0xffffffff
je 0x42ec94
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x42ec8a
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42ec80
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42ecc0
push ecx
push edx
call fcn.00438e9f
add esp, 8
mov bl, 1
jmp 0x42ecd2
mov edx, dword [ebp - 0x438]
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x42ecd0
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42ecc6
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42ecc6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00438e9f
add esp, 8
xor bl, bl
mov edx, dword [ebp - 0x43c]
cmp edx, 8
jb 0x42ed14
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42ed0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42ed0a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00438e9f
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043910c
mov esp, ebp
pop ebp
ret