Function at 0x424760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492fdb
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.00413270
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 0
call fcn.00413270
push 0x208
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00470f10
add esp, 0xc
lea eax, [ebp - 0x434]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4247e7
sub ecx, edx
lea eax, [ebp - 0x434]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00402f30
mov byte [ebp - 4], 2
cmp byte [esi], 0
je 0x4248a2
mov ecx, dword [ebp - 0x18]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0x13
jb 0x424a63
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x13
cmovae eax, dword [ebp - 0x28]
push 0x4ae634
push ecx
push eax
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.00417460
push 1
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x13c]
call fcn.004135b0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x4249dd
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x424893
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x424a68
push edx
push ecx
call fcn.0046d4cf
add esp, 8
jmp 0x4249dd
mov al, byte [esi + 1]
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x2c], al
test al, al
je 0x4248bd
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 0x424a6d
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.00417460
push 1
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x22c]
call fcn.004135b0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x424949
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42493f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x424a72
push edx
push ecx
call fcn.0046d4cf
add esp, 8
mov ecx, dword [ebp - 0x18]
sub esi, ecx
cmp esi, 0x13
jb 0x424a77
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.00417460
push 1
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x13c]
call fcn.004135b0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x4249ca
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4249c0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x424a7c
push edx
push ecx
call fcn.0046d4cf
add esp, 8
mov byte [ebp - 4], 2
cmp byte [ebp - 0x2c], 0
je 0x4249dd
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.00424a90
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 7
push eax
lea ecx, [esi + 0xf0]
call fcn.00424a90
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x424a3a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x424a30
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x424a81
push edx
push ecx
call fcn.0046d4cf
add esp, 8
lea ecx, [ebp - 0x22c]
call fcn.004133e0
lea ecx, [ebp - 0x13c]
call fcn.004133e0
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.004021f0
call fcn.00472aca
call fcn.004021f0
call fcn.00472aca
call fcn.004021f0
call fcn.00472aca
call fcn.00472aca
int3