Function at 0x40a0e8
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4146a0
call fcn.004143e0
sub esp, 0x654
mov eax, dword [0x41889c]
push ebx
push edi
mov dword [ebp - 0x10], eax
mov edx, 0x81
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x440], bx
mov ecx, edx
lea edi, [ebp - 0x43e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x238], bx
mov ecx, edx
lea edi, [ebp - 0x236]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x650]
push eax
push fcn.00409e2f
push 6
mov dword [ebp - 0x650], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x40a2d1
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x650]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebp - 0x238]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
add esp, 0x14
cmp eax, ebx
je 0x40a19d
mov word [eax], bx
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x648]
push 0x401b20
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.00409e2f
test eax, eax
je 0x40a2d0
xor eax, eax
lea edi, [ebp - 0x649]
stosb byte es:[edi], al
lea eax, [ebp - 0x649]
push eax
lea ecx, [ebp - 0x660]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const__]
lea eax, [ebp - 0x648]
push 0x401aa8
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.msvcrt.dll__wfopen]
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x40a26c
mov esi, dword [sym.imp.msvcrt.dll_fseek]
push 2
push ebx
push edi
call esi
push edi
call dword [sym.imp.msvcrt.dll_ftell]
add esp, 0x10
add eax, 0xffff6124
push eax
lea ecx, [ebp - 0x660]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int_]
push ebx
push 0x9edc
push edi
call esi
add esp, 0xc
push edi
lea ecx, [ebp - 0x660]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
push eax
push 1
push ebx
lea ecx, [ebp - 0x660]
call dword [sym.imp.MSVCP60.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
push eax
call dword [sym.imp.msvcrt.dll_fread]
push edi
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 0x14
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x660]
push eax
call fcn.00409fec
test eax, eax
lea ecx, [ebp - 0x660]
je 0x40a2c6
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
push eax
lea ecx, [ebp - 0x660]
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call fcn.00409d70
push 0x401b1c
lea ecx, [ebp - 0x660]
mov esi, eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push 7
push esi
call fcn.004098a4
cmp eax, ebx
je 0x40a2c0
call eax
lea ecx, [ebp - 0x660]
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004140d1
leave
ret