Function at 0x42f2a0
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 0x466a5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x42c
push esi
mov esi, ecx
lea ecx, [ebp - 0x140]
call fcn.00410570
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
call fcn.00410570
push 0x208
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00445960
add esp, 0xc
lea eax, [ebp - 0x438]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f340
sub ecx, edx
lea eax, [ebp - 0x438]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00405e90
mov byte [ebp - 4], 2
cmp byte [esi], 0
je 0x42f3fb
mov ecx, dword [ebp - 0x20]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0x13
jb 0x42f5bf
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0x13
cmovae eax, dword [ebp - 0x30]
push 0x4962b0
push ecx
push eax
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x48]
call fcn.00414c10
push 1
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x140]
call fcn.00410840
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x42f536
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42f3ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f5c4
push ecx
push edx
call fcn.004418b1
add esp, 8
jmp 0x42f536
mov al, byte [esi + 1]
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], al
test al, al
je 0x42f416
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
mov esi, 0x7ffffffe
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x20]
mov eax, esi
sub eax, ecx
cmp eax, 0x13
jb 0x42f5c9
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0x13
cmovae eax, dword [ebp - 0x30]
push str.System32_ntdll.dll
push ecx
push eax
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x48]
call fcn.00414c10
push 1
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x230]
call fcn.00410840
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x42f4a2
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42f498
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f5ce
push ecx
push edx
call fcn.004418b1
add esp, 8
mov ecx, dword [ebp - 0x20]
sub esi, ecx
cmp esi, 0x13
jb 0x42f5d3
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0x13
cmovae eax, dword [ebp - 0x30]
push str.SysWOW64_ntdll.dll
push ecx
push eax
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x48]
call fcn.00414c10
push 1
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x140]
call fcn.00410840
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x42f523
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42f519
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f5d8
push ecx
push edx
call fcn.004418b1
add esp, 8
mov byte [ebp - 4], 2
cmp byte [ebp - 0x14], 0
je 0x42f536
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
mov esi, dword [ebx + 8]
lea eax, [ebp - 0x140]
push eax
mov ecx, esi
call fcn.0042f5f0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 7
push eax
lea ecx, [esi + 0xf0]
call fcn.0042f5f0
mov ecx, dword [ebp - 0x1c]
cmp ecx, 8
jb 0x42f593
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42f589
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f5dd
push ecx
push edx
call fcn.004418b1
add esp, 8
lea ecx, [ebp - 0x230]
call fcn.00410710
lea ecx, [ebp - 0x140]
call fcn.00410710
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.00401780
call fcn.00449a39
call fcn.00401780
call fcn.00449a39
call fcn.00401780
call fcn.00449a39
call fcn.00449a39
int3