Function at 0x418710
Capabilities:
Check if file exists
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x448c8b
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x2c]
mov eax, dword [edi + 0x30]
cmp esi, eax
je 0x41874d
mov ecx, dword [esi]
test ecx, ecx
je 0x418743
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [edi + 0x30]
add esi, 4
cmp esi, eax
jne 0x418737
mov eax, dword [edi + 0x30]
mov esi, dword [edi + 0x2c]
add edi, 0x28
cmp eax, eax
mov dword [esp + 0x24], edi
mov ecx, eax
je 0x41876e
mov edx, dword [ecx]
add ecx, 4
mov dword [esi], edx
add esi, 4
cmp ecx, eax
jne 0x418760
mov eax, dword [edi + 8]
mov ecx, edi
push eax
push esi
call fcn.0041a130
mov dword [edi + 8], esi
mov esi, dword [esp + 0x38]
mov eax, dword [esi + 4]
test eax, eax
jne 0x41878d
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4187ae
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
mov eax, dword [esi + 4]
test eax, eax
jne 0x4187ba
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4187f0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x2c]
push 4
push ecx
push ebx
call ebp
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], 0
test eax, eax
jle 0x4189ef
push 0xb4
call fcn.0043c870
add esp, 4
mov dword [esp + 0x3c], eax
test eax, eax
mov dword [esp + 0x34], 0
je 0x418842
mov ecx, eax
call fcn.00415a40
jmp 0x418844
xor eax, eax
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
push 0
push edx
lea eax, [esp + 0x18]
push 4
push eax
push ebx
mov dword [esp + 0x48], 0xffffffff
call ebp
mov ecx, dword [esp + 0x10]
lea edx, [ecx + ecx + 2]
push edx
call fcn.0043c870
mov esi, eax
mov eax, dword [esp + 0x14]
mov edi, esi
add esp, 4
lea ecx, [eax + eax + 2]
xor eax, eax
mov edx, ecx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea edx, [ecx + ecx]
push edx
push esi
push ebx
call ebp
mov eax, dword [esp + 0x18]
push esi
add eax, 0x18
mov dword [esp + 0x40], eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [esp + 0x40]
add esp, 4
mov edi, eax
push 1
push edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x418901
mov edx, dword [esp + 0x3c]
mov ecx, esi
test edi, edi
mov eax, dword [edx + 4]
jbe 0x4188f5
mov dword [esp + 0x1c], edi
mov dx, word [ecx]
add ecx, 2
mov word [eax], dx
mov edx, dword [esp + 0x1c]
add eax, 2
dec edx
mov dword [esp + 0x1c], edx
jne 0x4188da
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 4]
mov dword [edx + 8], edi
mov word [eax + edi*2], 0
push esi
call fcn.0043c8a0
add esp, 4
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push ecx
push 4
push edx
push ebx
call ebp
mov eax, dword [esp + 0x10]
lea ecx, [eax + eax + 2]
push ecx
call fcn.0043c870
mov edx, dword [esp + 0x14]
mov esi, eax
xor eax, eax
mov edi, esi
lea ecx, [edx + edx + 2]
add esp, 4
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea edx, [ecx + ecx]
push edx
push esi
push ebx
call ebp
mov eax, dword [esp + 0x18]
push esi
add eax, 0x88
mov dword [esp + 0x40], eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [esp + 0x40]
add esp, 4
mov edi, eax
push 1
push edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x4189bd
mov edx, dword [esp + 0x3c]
mov ecx, esi
test edi, edi
mov eax, dword [edx + 4]
jbe 0x4189b1
mov dword [esp + 0x1c], edi
mov dx, word [ecx]
add ecx, 2
mov word [eax], dx
mov edx, dword [esp + 0x1c]
add eax, 2
dec edx
mov dword [esp + 0x1c], edx
jne 0x418996
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 4]
mov dword [edx + 8], edi
mov word [eax + edi*2], 0
push esi
call fcn.0043c8a0
add esp, 4
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x2c]
push 1
mov edx, dword [ecx + 8]
push edx
call fcn.0041a1d0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x41881c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2c]
pop ebp
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4