Function at 0x100904f0
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 [0x10177024]
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 0x100905c0
push 0x4b9
mov dword [esp + 0x14], 0x4b91002
call fcn.1008d160
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 0x10090981
test ebx, ebx
jne 0x100905fa
push 0x4ba
mov dword [esp + 0x14], 0x4ba1002
call fcn.1008d160
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 0x10090981
cmp dword [esp + 0x1c], 0
jne 0x10090637
push 0x4bb
mov dword [esp + 0x14], 0x4bb1002
call fcn.1008d160
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 0x10090981
push 0x104
lea edx, [esp + 0x144]
call fcn.1008e570
test al, al
jne 0x10090682
push 0x4bd
mov dword [esp + 0x14], 0x4bd1002
call fcn.1008d160
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 0x10090981
lea eax, [esp + 0x140]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10090690
sub eax, edx
sar eax, 1
lea ecx, [edi + 4]
mov dword [esp + 0x18], eax
call fcn.100909b0
test eax, eax
jne 0x100907e8
mov ecx, edi
call fcn.1008dcd0
mov dword [esp + 0x10], eax
movzx eax, ax
test eax, eax
je 0x100907e8
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 0x10090706
mov esi, 0x4c61004
push 0x4c6
mov dword [esp + 0x14], esi
call fcn.1008d160
push eax
push str.SUCCEEDED_SHGetFolderPathA_NULL__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szNasProfile__
call fcn.100016d0
add esp, 0xc
jmp 0x10090984
lea eax, [esp + 0x38]
add eax, 0xffffffff
lea ecx, [ecx]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x10090710
mov edx, dword [0x10153e3c]
mov ecx, dword [0x10153e40]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [eax], edx
mov dl, byte [0x10153e44]
mov dword [eax + 4], ecx
mov byte [eax + 8], dl
lea eax, [esp + 0x38]
push eax
call esi
cmp eax, 0xffffffff
jne 0x1009077d
push 0
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1009077d
mov esi, 0x4ca1005
push 0x4ca
mov dword [esp + 0x14], esi
call fcn.1008d160
push eax
push str.CreateDirectoryA_szNasProfile__NULL_
call fcn.100016d0
add esp, 0xc
jmp 0x10090984
lea eax, [esp + 0x38]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x10090784
mov edx, dword [str.NAS.XML]
mov ecx, dword [0x1015aa28]
mov dword [eax], edx
mov dl, byte [0x1015aa2c]
mov dword [eax + 4], ecx
mov byte [eax + 8], dl
lea eax, [esp + 0x38]
push eax
call esi
cmp eax, 0xffffffff
jne 0x100907e8
lea ecx, [esp + 0x38]
push ecx
call fcn.1008ee50
test eax, eax
jne 0x100907e8
mov esi, 0x4d01005
push 0x4d0
mov dword [esp + 0x14], esi
call fcn.1008d160
push eax
push str.CreateDefaultNasXML_szNasProfile_
call fcn.100016d0
add esp, 0xc
jmp 0x10090984
lea esi, [esp + 0x30]
add edi, 4
call fcn.1009d840
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 0x10090816
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test ebx, ebx
je 0x10090825
mov eax, dword [esp + 0x14]
add eax, 4
cmp ebx, eax
je 0x1009082b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
je 0x100908d5
test ebx, ebx
jne 0x1009083d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [ebx + 8]
jb 0x10090848
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 0x100908d5
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 0x100908bb
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 0x100908d9
lea edi, [esp + 0x30]
lea esi, [esp + 0x20]
call fcn.10090ab0
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
jmp 0x10090801
mov edi, dword [esp + 0x14]
lea eax, [edi + 4]
mov edi, dword [eax + 8]
cmp dword [eax + 4], edi
jbe 0x100908ea
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test ebx, ebx
je 0x100908f9
mov eax, dword [esp + 0x14]
add eax, 4
cmp ebx, eax
je 0x100908ff
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
xor eax, eax
cmp esi, edi
sete al
mov esi, eax
test esi, esi
jne 0x10090933
push 0x4e5
call fcn.1008d160
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 0x10090981
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.1008f070
movzx edx, ax
test edx, edx
mov dword [esp + 0x10], eax
je 0x10090984
push 0x4e6
call fcn.1008d160
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.10130e50
mov esp, ebp
pop ebp
ret 0xc