Function at 0x10090190
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54c
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x548], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
xor esi, esi
push 0x103
lea ecx, [esp + 0x3d]
push esi
push ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], esi
mov byte [esp + 0x44], 0
call sub.MSVCR80.dll_memset
push 0x206
lea edx, [esp + 0x35a]
push esi
push edx
mov word [esp + 0x360], si
call sub.MSVCR80.dll_memset
push 0x206
lea eax, [esp + 0x15e]
push esi
push eax
mov word [esp + 0x164], si
call sub.MSVCR80.dll_memset
lea eax, [edi + 0x38]
add esp, 0x24
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
test esi, esi
jne 0x10090260
push 0x4b9
mov dword [esp + 0x14], 0x4b91002
call fcn.1008ce00
mov esi, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push 0x4b91002
push str.pRemotePath___NULL
push str._s_return_code:_0x_08X___s.
push eax
call edx
jmp 0x10090621
test ebx, ebx
jne 0x1009029a
push 0x4ba
mov dword [esp + 0x14], 0x4ba1002
call fcn.1008ce00
mov esi, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push 0x4ba1002
push str.pUsername___NULL
push str._s_return_code:_0x_08X___s.
push eax
call edx
jmp 0x10090621
cmp dword [esp + 0x1c], 0
jne 0x100902d7
push 0x4bb
mov dword [esp + 0x14], 0x4bb1002
call fcn.1008ce00
mov esi, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push 0x4bb1002
push str.pPassword___NULL
push str._s_return_code:_0x_08X___s.
push eax
call edx
jmp 0x10090621
push 0x104
lea edx, [esp + 0x144]
call fcn.1008e210
test al, al
jne 0x10090322
push 0x4bd
mov dword [esp + 0x14], 0x4bd1002
call fcn.1008ce00
mov esi, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push 0x4bd1002
push str.GetRootPath_wszRoot__pRemotePath__sizeof_wszRoot__sizeof_wszRoot_0___
push str._s_return_code:_0x_08X___s.
push eax
call edx
jmp 0x10090621
lea eax, [esp + 0x140]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10090330
sub eax, edx
sar eax, 1
lea ecx, [edi + 4]
mov dword [esp + 0x18], eax
call fcn.10090650
test eax, eax
jne 0x10090488
mov ecx, edi
call fcn.1008d970
mov dword [esp + 0x10], eax
movzx eax, ax
test eax, eax
je 0x10090488
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jge 0x100903a6
mov esi, 0x4c61004
push 0x4c6
mov dword [esp + 0x14], esi
call fcn.1008ce00
push eax
push str.SUCCEEDED_SHGetFolderPathA_NULL__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szNasProfile__
call fcn.100016d0
add esp, 0xc
jmp 0x10090624
lea eax, [esp + 0x38]
add eax, 0xffffffff
lea ecx, [ecx]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x100903b0
mov edx, dword [0x1014db0c]
mov ecx, dword [0x1014db10]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [eax], edx
mov dl, byte [0x1014db14]
mov dword [eax + 4], ecx
mov byte [eax + 8], dl
lea eax, [esp + 0x38]
push eax
call esi
cmp eax, 0xffffffff
jne 0x1009041d
push 0
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1009041d
mov esi, 0x4ca1005
push 0x4ca
mov dword [esp + 0x14], esi
call fcn.1008ce00
push eax
push str.CreateDirectoryA_szNasProfile__NULL_
call fcn.100016d0
add esp, 0xc
jmp 0x10090624
lea eax, [esp + 0x38]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x10090424
mov edx, dword [str.NAS.XML]
mov ecx, dword [0x101546f8]
mov dword [eax], edx
mov dl, byte [0x101546fc]
mov dword [eax + 4], ecx
mov byte [eax + 8], dl
lea eax, [esp + 0x38]
push eax
call esi
cmp eax, 0xffffffff
jne 0x10090488
lea ecx, [esp + 0x38]
push ecx
call fcn.1008eaf0
test eax, eax
jne 0x10090488
mov esi, 0x4d01005
push 0x4d0
mov dword [esp + 0x14], esi
call fcn.1008ce00
push eax
push str.CreateDefaultNasXML_szNasProfile_
call fcn.100016d0
add esp, 0xc
jmp 0x10090624
lea esi, [esp + 0x30]
add edi, 4
call fcn.1009d680
mov ebx, dword [eax]
mov esi, dword [eax + 4]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0xc]
add eax, 4
cmp dword [eax + 4], edi
jbe 0x100904b6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test ebx, ebx
je 0x100904c5
mov eax, dword [esp + 0x14]
add eax, 4
cmp ebx, eax
je 0x100904cb
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
je 0x10090575
test ebx, ebx
jne 0x100904dd
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [ebx + 8]
jb 0x100904e8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x144]
push eax
push esi
call dword [sym.imp.MSVCR80.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x10090575
push 0x208
lea ecx, [esp + 0x34c]
push 0
push ecx
call sub.MSVCR80.dll_memset
mov edi, dword [esp + 0x20]
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
add esp, 0xc
push esi
push 0x104
lea eax, [esp + 0x350]
push eax
mov ecx, edi
call edx
test al, al
je 0x1009055b
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x144]
push ecx
lea edx, [esp + 0x350]
push edx
call dword [sym.imp.MSVCR80.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x10090579
lea edi, [esp + 0x30]
lea esi, [esp + 0x20]
call fcn.10090750
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
jmp 0x100904a1
mov edi, dword [esp + 0x14]
lea eax, [edi + 4]
mov edi, dword [eax + 8]
cmp dword [eax + 4], edi
jbe 0x1009058a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test ebx, ebx
je 0x10090599
mov eax, dword [esp + 0x14]
add eax, 4
cmp ebx, eax
je 0x1009059f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
xor eax, eax
cmp esi, edi
sete al
mov esi, eax
test esi, esi
jne 0x100905d3
push 0x4e5
call fcn.1008ce00
mov edi, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push edi
push esi
push str.itm_vecAlReadyRemoteInfo.end__
push str._s_return_code:_0x_08X___s.
push eax
call edx
jmp 0x10090621
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x144]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.1008ed10
movzx edx, ax
test edx, edx
mov dword [esp + 0x10], eax
je 0x10090624
push 0x4e6
call fcn.1008ce00
mov esi, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push esi
push edx
push str.AddToProfile_wszRoot__pUsername__pPassword_
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [ecx + 0xc]
call eax
add esp, 0x18
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x554]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1012d370
mov esp, ebp
pop ebp
ret 0xc