Function at 0x435cd7
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov esi, 0x80004005
test edi, edi
jne 0x435cf9
lea eax, [esi - 2]
jmp 0x436065
lea eax, [ebp - 4]
push eax
push 0x4043e0
push ebx
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
test eax, eax
je 0x436060
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x436060
cmp eax, 0x19
ja 0x435f4f
je 0x435f38
cmp eax, 0x11
ja 0x435e36
je 0x435df6
sub eax, 0
je 0x43605c
sub eax, 1
je 0x435dc2
sub eax, 9
je 0x435f38
sub eax, 1
je 0x435dac
sub eax, 1
jne 0x43605c
shr edi, 1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x435d75
xor esi, esi
jmp 0x435d99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x435d86
push 0x57
pop esi
test esi, esi
jle 0x435d91
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x43605c
ret
add al, byte [eax]
invalid
push 0x409944
mov edx, edi
mov ecx, ebx
call fcn.0040c075
jmp 0x43605c
shr edi, 1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x435f42
xor esi, esi
jmp 0x43605c
push ebx
shr edi, 1
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x435f42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x435de2
push 0x57
pop esi
test esi, esi
jle 0x43605c
movzx esi, si
or esi, 0x80070000
jmp 0x43605c
shr edi, 1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x435e08
xor esi, esi
jmp 0x435e2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x435e19
push 0x57
pop esi
test esi, esi
jle 0x435e24
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x43605c
push 0x409958
jmp 0x435d9e
sub eax, 0x12
je 0x435ef8
dec eax
sub eax, 1
je 0x435eb8
sub eax, 1
je 0x43605c
dec eax
sub eax, 1
je 0x43605c
sub eax, 1
jne 0x43605c
shr edi, 1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x435e73
xor esi, esi
jmp 0x435e97
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x435e84
push 0x57
pop esi
test esi, esi
jle 0x435e8f
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x43605c
push 0x4043e8
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x43605c
xor ecx, ecx
mov word [eax + 4], cx
jmp 0x43605c
shr edi, 1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x435eca
xor esi, esi
jmp 0x435eee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x435edb
push 0x57
pop esi
test esi, esi
jle 0x435ee6
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x43605c
push 0x409970
jmp 0x435d9e
shr edi, 1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x435f0a
xor esi, esi
jmp 0x435f2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x435f1b
push 0x57
pop esi
test esi, esi
jle 0x435f26
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x43605c
push 0x409964
jmp 0x435d9e
shr edi, 1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
jne 0x435dbb
jmp 0x435dd1
cmp eax, 0x4019
ja 0x436001
cmp eax, 0x4016
jae 0x43605c
cmp eax, 0x1e
je 0x43605c
cmp eax, 0x32
je 0x43605c
cmp eax, 0x33
je 0x435fc5
cmp eax, 0x34
jne 0x43605c
shr edi, 1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x435f97
xor esi, esi
jmp 0x435fbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x435fa8
push 0x57
pop esi
test esi, esi
jle 0x435fb3
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x43605c
push 0x409990
jmp 0x435d9e
shr edi, 1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x435fd7
xor esi, esi
jmp 0x435ff7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x435fe8
push 0x57
pop esi
test esi, esi
jle 0x435ff3
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x43605c
push 0x409980
jmp 0x435d9e
sub eax, 0x401f
je 0x43605c
sub eax, 4
je 0x43604f
sub eax, 3
je 0x436042
sub eax, 5
je 0x436035
sub eax, 0x3825
jne 0x43605c
xor edx, edx
mov ecx, ebx
inc edx
call fcn.0041fb21
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add esi, eax
jmp 0x43605c
shr edi, 1
mov ecx, ebx
mov edx, edi
call fcn.00435649
jmp 0x43605a
shr edi, 1
mov ecx, ebx
mov edx, edi
call fcn.0043529c
jmp 0x43605a
shr edi, 1
mov ecx, ebx
mov edx, edi
call fcn.00435865
mov esi, eax
mov eax, esi
jmp 0x436065
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave