Function at 0x435ec0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b8c8
push 0x434e46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffdac
mov eax, dword [0x44d558]
mov dword [ebp - 0x40], eax
push ebx
push esi
push edi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0x80004005
mov dword [ebp - 4], 0
mov word [ebp - 0x250], 0
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x24e]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x258], 0x105
push 0x43b834
call sub.MSVCR71.dll_wcslen
add esp, 4
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x258]
push eax
lea ecx, [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
je 0x435ff5
mov edx, dword [ebp - 0x254]
cmp edx, dword [ebp - 0x258]
jae 0x435ff5
lea eax, [ebp - 0x250]
push eax
call sub.MSVCR71.dll_wcslen
add esp, 4
mov ecx, dword [ebp - 0x25c]
lea edx, [eax + ecx + 2]
cmp edx, dword [ebp - 0x258]
ja 0x435ff5
push 0x43b850
lea eax, [ebp - 0x250]
push eax
call sub.MSVCR71.dll_wcscat
add esp, 8
push 0x43b854
lea ecx, [ebp - 0x250]
push ecx
call sub.MSVCR71.dll_wcscat
add esp, 8
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x436009
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
jmp 0x43616c
push str.NetWkstaGetInfo
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
push 0x43b880
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
push 0x43b894
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x28], 0
je 0x436051
cmp dword [ebp - 0x1c], 0
je 0x436051
cmp dword [ebp - 0x34], 0
jne 0x43605f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
jmp 0x43616c
lea eax, [ebp - 0x30]
push eax
push 0x64
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x436083
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
jmp 0x43616c
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4360a9
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
jmp 0x43616c
lea ecx, [ebp - 0x2c]
push ecx
push 0x64
mov edx, dword [ebp - 0x24]
push edx
call dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4360ca
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
jmp 0x43616c
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
push ecx
call sub.MSVCR71.dll_wcscmp
add esp, 8
test eax, eax
jne 0x43615d
mov edx, dword [ebp - 0x24]
push edx
call sub.MSVCR71.dll_wcslen
add esp, 4
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0xf
jbe 0x436101
jmp 0x43616c
mov dword [ebp - 0x264], 0
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x436125
mov edx, dword [ebp - 0x264]
add edx, 1
mov dword [ebp - 0x264], edx
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + 2]
cmp ecx, 0x5c
jne 0x436140
mov edx, dword [ebp - 0x264]
add edx, 1
mov dword [ebp - 0x264], edx
push 0xf
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax*2]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR71.dll_wcsncpy
add esp, 0xc
jmp 0x436165
mov ecx, dword [ebp + 0xc]
mov word [ecx], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
call fcn.0043617a
jmp 0x4361e3
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x40]
call fcn.00434de1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret