Function at 0x4c3930
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58d580
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x5ff1d4]
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
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
push 0
push 0x5d843c
mov dword [ebp - 0x2ec], esi
mov dword [ebp - 0x2e8], edi
call fcn.004a4ab0
xor eax, eax
mov dword [edi], 0
push eax
push 0x5d843c
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x294], 7
mov dword [ebp - 0x298], 0
mov word [ebp - 0x2a8], ax
call fcn.004a4ab0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [esi], ax
jne 0x4c39e2
xor ecx, ecx
jmp 0x4c39f6
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c39e7
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x230]
call fcn.004a4ab0
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004c4360
mov edi, eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x21c]
test edi, edi
setns al
mov byte [ebp - 0x2dd], al
cmp ecx, 8
jb 0x4c3a4f
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.004a5150
mov al, byte [ebp - 0x2dd]
test al, al
je 0x4c3ec5
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
xor eax, eax
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push eax
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x21c], 7
push eax
mov dword [ebp - 0x220], 0
call fcn.004a4df0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 3
push eax
mov edx, str._n_WaCLRHostUtils__invoke_:_funcName:_Execute__params:
lea ecx, [ebp - 0x248]
call fcn.004ab990
add esp, 4
push 1
push eax
mov byte [ebp - 4], 4
call fcn.004be7e0
mov ecx, eax
call fcn.004bb210
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x4c3afa
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.004a5150
xor eax, eax
mov byte [ebp - 4], 2
mov word [ebp - 0x248], ax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
cmp eax, 8
jb 0x4c3b39
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004a5150
cmp dword [ebp - 0x294], 8
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x230]
cmovae eax, dword [ebp - 0x2a8]
push eax
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
mov byte [ebp - 0x228], 0
mov dword [ebp - 0x22c], 5
call fcn.004a8ad0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x21c], 0
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
mov byte [ebp - 0x21c], 0
mov dword [ebp - 0x220], 5
call fcn.004a6650
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], 1
push 0x5d9b40
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 6
call fcn.004a48c0
push str.libwapshost.WaPSHost
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 7
call fcn.004a48c0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x218]
mov byte [ebp - 0x2e4], 0
lea ecx, [ebp - 0x26c]
push dword [ebp - 0x2e4]
mov dword [ebp - 0x2dc], 0x66
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x26c], 0
push eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0
call fcn.004c54a0
push ecx
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.004c50e0
mov ecx, eax
call fcn.004c1100
mov edi, eax
mov dword [ebp - 0x2e4], edi
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0xa
call fcn.004aa5f0
mov eax, dword [ebp - 0x27c]
cmp eax, 8
jb 0x4c3ca8
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.004a5150
xor eax, eax
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x280], 0
cmp eax, 8
jb 0x4c3ce3
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.004a5150
push fcn.004a5940
xor eax, eax
mov dword [ebp - 0x234], 7
push 2
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x230]
push 0xc
push eax
mov dword [ebp - 0x238], 0
mov byte [ebp - 4], 2
call fcn.005344c3
mov ecx, dword [ebp - 0x250]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x254]
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jb 0x4c3eb2
test edi, edi
js 0x4c3eb2
mov dword [ebp - 0x2dc], 0
test eax, eax
jne 0x4c3d5b
call fcn.004aa5e0
mov eax, dword [esi]
lea ecx, [ebp - 0x2dc]
push ecx
mov esi, dword [eax + 0x54]
mov ecx, esi
call dword [0x59a43c]
mov ecx, dword [ebp - 0x254]
call esi
test al, al
je 0x4c3db8
push 0
lea ecx, [ebp - 0x254]
call fcn.004a9fe0
mov edi, eax
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [edi]
mov esi, dword [ecx + 0xb4]
mov ecx, esi
call dword [0x59a43c]
mov ecx, edi
call esi
push eax
mov ecx, ebx
call fcn.004aa2c0
lea ecx, [ebp - 0x248]
call fcn.004a4880
mov ecx, dword [ebp - 0x250]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x254]
sub ecx, edi
imul ecx
mov dword [ebp - 0x2dc], 1
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x4c3dea
call fcn.004aa5e0
mov eax, dword [edi + 0xc]
lea ecx, [ebp - 0x2dc]
push ecx
mov esi, dword [eax + 0x54]
mov ecx, esi
call dword [0x59a43c]
lea ecx, [edi + 0xc]
call esi
test al, al
je 0x4c3e31
push 1
lea ecx, [ebp - 0x254]
call fcn.004a9fe0
mov edi, eax
mov ecx, dword [edi]
mov esi, dword [ecx + 0xb0]
mov ecx, esi
call dword [0x59a43c]
mov ecx, edi
call esi
mov dword [ebp - 0x2e4], eax
mov ecx, dword [ebp - 0x250]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x254]
sub ecx, edi
imul ecx
mov dword [ebp - 0x2dc], 1
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
ja 0x4c3e63
call fcn.004aa5e0
mov eax, dword [edi + 0x18]
lea ecx, [ebp - 0x2dc]
push ecx
mov esi, dword [eax + 0x54]
mov ecx, esi
call dword [0x59a43c]
lea ecx, [edi + 0x18]
call esi
test al, al
je 0x4c3eac
push 2
lea ecx, [ebp - 0x254]
call fcn.004a9fe0
mov edi, eax
mov ecx, dword [edi]
mov esi, dword [ecx + 0xb0]
mov ecx, esi
call dword [0x59a43c]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x2e8]
mov dword [ecx], eax
mov edi, dword [ebp - 0x2e4]
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0xb
call fcn.004aa5f0
mov byte [ebp - 4], 0
test edi, edi
jns 0x4c4319
mov edx, edi
lea ecx, [ebp - 0x260]
call fcn.004a5420
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 0xc
push 0xffffffffffffffff
push eax
push ebx
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.004a4df0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0xd
push eax
mov edx, str._nPowershell_Host_Execution_failed._Error:
lea ecx, [ebp - 0x278]
call fcn.004ab990
push str.._Return_code:
mov edx, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x290]
call fcn.004aba00
push esi
mov edx, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x248]
call fcn.004ab810
add esp, 0xc
push 1
push eax
mov byte [ebp - 4], 0x10
call fcn.004be7e0
mov ecx, eax
call fcn.004bb210
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x4c3f83
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.004a5150
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x238], 0
cmp eax, 8
jb 0x4c3fbe
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.004a5150
xor eax, eax
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x280], 0
cmp eax, 8
jb 0x4c3ff9
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.004a5150
xor eax, eax
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x268], 0
cmp eax, 8
jb 0x4c4034
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004a5150
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x220], 0
cmp eax, 8
jb 0x4c4072
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.004a5150
cmp byte [ebp + 0x14], 0
je 0x4c4319
cmp edi, 0xffffffcf
je 0x4c4319
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00563230
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x4c40d7
mov eax, dword [0x5d9bd8]
movups xmm0, xmmword [str.C:Windows]
mov dword [ebp - 0x208], eax
mov ax, word [0x5d9bdc]
movups xmmword [ebp - 0x218], xmm0
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.004a48c0
push str.System32WindowsPowerShell_v1.0powershell.exe
mov edx, eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x230]
call fcn.004aba00
add esp, 4
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x13
call fcn.004a4880
push dword [ebp - 0x2ec]
lea ecx, [ebp - 0x290]
call fcn.004a48c0
push 0x5d9c40
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0x14
call fcn.004a48c0
push 0x5d863c
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x15
call fcn.004a48c0
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 0x16
push eax
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x290]
call fcn.004b1250
add esp, 4
lea ecx, [ebp - 0x248]
call fcn.004a4880
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0x14
call fcn.004a4880
lea eax, [ebp - 0x290]
mov dword [ebp - 0x2dc], 0
push eax
mov edx, str._noprofile__ExecutionPolicy_Bypass__
lea ecx, [ebp - 0x278]
call fcn.004c03c0
push 0x5d863c
mov edx, eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x248]
call fcn.004aba00
add esp, 8
push dword [ebp + 0x10]
lea ecx, [ebp - 0x2dc]
mov byte [ebp - 4], 0x18
sub esp, 8
mov edx, eax
push ecx
push ebx
lea ecx, [ebp - 0x230]
call fcn.005105c0
add esp, 0x14
lea ecx, [ebp - 0x248]
mov edi, eax
call fcn.004a4880
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0x14
call fcn.004a4880
test edi, edi
jns 0x4c42d4
mov edx, edi
lea ecx, [ebp - 0x2d8]
call fcn.004a5420
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 0x19
push 0xffffffffffffffff
push eax
push ebx
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
call fcn.004a4df0
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 0x1a
push eax
mov edx, str._nSystem_Powershell_Execution_failed._Error:
lea ecx, [ebp - 0x2c0]
call fcn.004ab990
push str.._Return_code:
mov edx, eax
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x260]
call fcn.004aba00
push esi
mov edx, eax
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x278]
call fcn.004ab810
add esp, 0xc
push 1
push eax
mov byte [ebp - 4], 0x1d
call fcn.004be7e0
mov ecx, eax
call fcn.004bb210
lea ecx, [ebp - 0x278]
call fcn.004a4880
lea ecx, [ebp - 0x260]
call fcn.004a4880
lea ecx, [ebp - 0x2c0]
call fcn.004a4880
lea ecx, [ebp - 0x248]
call fcn.004a4880
lea ecx, [ebp - 0x2d8]
call fcn.004a4880
jmp 0x4c4303
cmp dword [ebx + 0x14], 8
jb 0x4c42de
mov ecx, dword [ebx]
jmp 0x4c42e0
mov ecx, ebx
call fcn.004afa10
test al, al
je 0x4c4303
cmp dword [ebx + 0x14], 8
jb 0x4c42f3
mov ecx, dword [ebx]
jmp 0x4c42f5
mov ecx, ebx
push ebx
mov edx, str._.__r_n
call fcn.004af860
add esp, 4
lea ecx, [ebp - 0x290]
call fcn.004a4880
lea ecx, [ebp - 0x230]
call fcn.004a4880
mov eax, dword [ebp - 0x294]
cmp eax, 8
jb 0x4c4337
inc eax
lea ecx, [ebp - 0x2a8]
push eax
push dword [ebp - 0x2a8]
call fcn.004a5150
mov eax, edi
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.00533fc6
mov esp, ebp
pop ebp
ret 0x14