Function at 0x10001920
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100eb280
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x10144930]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [edi + 0x800], eax
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x1000199d
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10001974
sub eax, edx
sar eax, 1
je 0x1000199d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000199d
lea ecx, [edi + 0x34a4]
mov eax, esi
call fcn.10008bf0
call fcn.100450c0
cmp eax, 0x100001
jae 0x100019cf
push str.the_os_version_is_less_than_windows_Vista
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [edi + 0x804]
mov eax, esi
call fcn.10008b80
test al, al
jne 0x10001a06
push str.Wireless_Lan_API_is_not_available___
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 4], ebx
je 0x10001a53
lea ebx, [edi + 0xc60]
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 2
mov edx, dword [esi + 4]
call edx
test eax, eax
je 0x10001a5a
xor ebx, ebx
push str.WlanOpenHandle_Error__
mov ecx, eax
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [edi + 0xc60], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 1
jmp 0x10001a25
add edi, 0xc64
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi], eax
mov ebx, dword [ebx]
cmp dword [esi + 0x20], 0
je 0x10001abd
lea eax, [ebp - 0x20]
push eax
push 0
push edi
push 0x10001400
push 1
push 0xffff
push ebx
mov ecx, dword [esi + 0x20]
call ecx
test eax, eax
je 0x10001ac4
push str.Fail_to_registrer_WlanRegisterNotification
mov ecx, eax
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 1
jmp 0x10001a95
mov edi, dword [ebp + 8]
add edi, 0x34a4
push 0
push 0x80
push 3
push 0
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10001c1b
cmp esi, 0xffffffff
je 0x10001c1b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp + 0xc], 0
test ebx, ebx
jne 0x10001b36
push str.Get_file_size_fail___
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
mov dword [ebp - 0x24], 0xd
push 0x1012ac78
lea edx, [ebp - 0x24]
push edx
call fcn.100c80ad
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x10001b6f
push str.Allocate_Memory_fail___
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
mov dword [ebp - 0x28], 0x7a
push 0x1012ac78
lea eax, [ebp - 0x28]
push eax
call fcn.100c80ad
push 0
lea ecx, [ebp + 0xc]
push ecx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10001baf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push str.Read_File_Fail__
mov ecx, esi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 0x2c], esi
push 0x1012ac78
lea edx, [ebp - 0x2c]
push edx
call fcn.100c80ad
push 0
mov eax, dword [ebp + 0xc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test eax, eax
jne 0x10001bde
push 0x2000
mov ebx, dword [ebp + 8]
lea ecx, [ebx + 0x3ca4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push edi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x10001bfd
push 0x1fff
push edi
push 0x2000
mov eax, dword [ebp + 8]
add eax, 0x3ca4
push eax
call fcn.100c6041
add esp, 0x10
mov ebx, dword [ebp + 8]
mov byte [ebx + 0x7ca5], 1
mov ecx, ebx
call fcn.10001ce0
mov ecx, ebx
call fcn.10004880
mov dword [ebp - 4], 0xffffffff
jmp 0x10001c7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
push str.Load_profile_fail_____s_
mov ecx, esi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 8
mov dword [ebp - 0x30], esi
push 0x1012ac78
lea ecx, [ebp - 0x30]
push ecx
call fcn.100c80ad
mov dword [ebp - 4], 0xffffffff
mov eax, 0x10001c75
ret
test esi, esi
je 0x10001c8e
cmp esi, 0xffffffff
je 0x10001c8e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10001c99
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, 0x10152dd8
cmp byte [ebx + 0x7ca5], 0
je 0x10001cb5
add ebx, 0x34a4
push ebx
push str.Init_Network_Manager____s____Success
jmp 0x10001cbe
mov edx, dword [ebp + 0x10]
push edx
push str.Init_Network_Manager____s____Fail
call fcn.1003f430
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc