Function at 0x42fb50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd33b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x42c
push esi
mov esi, ecx
lea ecx, [ebp - 0x13c]
call fcn.004123c0
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 0
call fcn.004123c0
push 0x208
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.004cebf0
add esp, 0xc
lea eax, [ebp - 0x434]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea edx, [ecx + 2]
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42fbe0
sub ecx, edx
lea eax, [ebp - 0x434]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00409830
mov byte [ebp - 4], 2
cmp byte [esi], 0
je 0x42fc9b
mov ecx, dword [ebp - 0x18]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0x13
jb 0x42fe5c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x13
cmovae eax, dword [ebp - 0x28]
push str.System32_ntdll.dll
push ecx
push eax
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.00416670
push 1
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x13c]
call fcn.00412710
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x42fdd6
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42fc8c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42fe61
push edx
push ecx
call fcn.004b4fdc
add esp, 8
jmp 0x42fdd6
mov al, byte [esi + 1]
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x2c], al
test al, al
je 0x42fcb6
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
mov esi, 0x7ffffffe
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
mov eax, esi
sub eax, ecx
cmp eax, 0x13
jb 0x42fe66
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x13
cmovae eax, dword [ebp - 0x28]
push 0x531c80
push ecx
push eax
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.00416670
push 1
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x22c]
call fcn.00412710
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x42fd42
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42fd38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42fe6b
push edx
push ecx
call fcn.004b4fdc
add esp, 8
mov ecx, dword [ebp - 0x18]
sub esi, ecx
cmp esi, 0x13
jb 0x42fe70
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x13
cmovae eax, dword [ebp - 0x28]
push str.SysWOW64_ntdll.dll
push ecx
push eax
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.00416670
push 1
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x13c]
call fcn.00412710
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x42fdc3
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42fdb9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42fe75
push edx
push ecx
call fcn.004b4fdc
add esp, 8
mov byte [ebp - 4], 2
cmp byte [ebp - 0x2c], 0
je 0x42fdd6
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x13c]
push eax
mov ecx, esi
call fcn.0042fe80
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 7
push eax
lea ecx, [esi + 0xf0]
call fcn.0042fe80
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42fe33
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42fe29
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42fe7a
push edx
push ecx
call fcn.004b4fdc
add esp, 8
lea ecx, [ebp - 0x22c]
call fcn.00412540
lea ecx, [ebp - 0x13c]
call fcn.00412540
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.00401d40
call fcn.004e34cc
call fcn.00401d40
call fcn.004e34cc
call fcn.00401d40
call fcn.004e34cc
call fcn.004e34cc
int3