Function at 0x423e60
Capabilities:
Get common file path

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 0x4314f6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x260
mov eax, dword [0x43f00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x254], edi
push 0x208
lea eax, [ebp - 0x220]
mov dword [ebp - 0x254], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x424183
xor eax, eax
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
lea edx, [ecx + 2]
mov word [ebp - 0x238], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423f00
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.00426b70
mov dword [ebp - 4], 0
lea eax, [ebp - 0x238]
cmp dword [ebp - 0x224], 8
mov ecx, dword [ebp - 0x228]
cmovae eax, dword [ebp - 0x238]
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x254], eax
cmp ecx, 8
jae 0x423f80
movups xmm0, xmmword [eax]
mov esi, 7
movups xmmword [ebp - 0x270], xmm0
jmp 0x424009
mov esi, ecx
mov eax, bind
or esi, 7
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x42417e
add eax, eax
cmp eax, 0x1000
jb 0x423fcd
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x42417e
push ecx
call fcn.0042cd56
add esp, 4
test eax, eax
je 0x42414e
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x423fe0
test eax, eax
je 0x423fde
push eax
call fcn.0042cd56
add esp, 4
mov ecx, eax
jmp 0x423fe0
xor ecx, ecx
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x270], ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x254]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x228]
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
push eax
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 2
push eax
push 0x434d8f
push str.cmd.exe
call fcn.0042e480
cmp dword [ebp - 0x23c], 8
lea esi, [ebp - 0x250]
mov eax, dword [ebp - 0x240]
lea edx, [ebp - 0x250]
cmovae esi, dword [ebp - 0x250]
cmovae edx, dword [ebp - 0x250]
lea eax, [esi + eax*2]
push eax
push edx
lea eax, [ebp - 0x270]
push eax
call fcn.0042dc80
mov edx, dword [ebp - 0x23c]
add esp, 0x1c
cmp edx, 8
jb 0x4240d4
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4240ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4240ca
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0042d0f1
add esp, 8
movups xmm0, xmmword [ebp - 0x270]
xor eax, eax
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x270], ax
movq xmm0, qword [ebp - 0x260]
mov eax, dword [ebp - 0x224]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 7
cmp eax, 8
jb 0x42415e
mov edx, dword [ebp - 0x238]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x424154
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x424154
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0042d0f1
add esp, 8
mov eax, edi
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.0042c87e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00404df0
lea ecx, [ebp - 0x230]
call fcn.00423930
mov edx, eax
mov ecx, str.GetSystemDirectory___failed
call fcn.00423970
int3