Function at 0x410a10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4185f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x10344
call fcn.00414e70
push ebx
push esi
push edi
lea edi, [ebp - 0x10354]
mov ecx, 0x40d1
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], esp
mov esi, esp
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
cmp esi, esp
call fcn.0041512c
push eax
call fcn.0040c964
add esp, 4
movzx eax, al
test eax, eax
jne 0x410a72
jmp 0x411199
call fcn.00401e5d
mov dword [ebp - 0x24], eax
mov esi, esp
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
cmp esi, esp
call fcn.0041512c
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x410aa1
mov dword [ebp - 0x10350], 0
jmp 0x410af0
mov esi, esp
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.0041512c
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
add eax, 3
and eax, 0xfffffffc
call fcn.00414e70
mov dword [ebp - 0x10354], esp
mov dword [ebp - 0x10], esp
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x10354]
push edx
call fcn.004071e3
mov dword [ebp - 0x10350], eax
mov esi, esp
push 0x41b894
mov eax, dword [ebp - 0x10350]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
cmp esi, esp
call fcn.0041512c
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x410b1c
jmp 0x411199
mov dword [ebp - 0x1005c], 0
mov dword [ebp - 0x10068], 0
mov eax, dword [ebp - 0x10068]
mov ecx, dword [ebp - 0x10068]
add ecx, 1
mov dword [ebp - 0x10068], ecx
cmp eax, 0x10000
jae 0x410b58
mov dword [ebp - 0x10350], 1
jmp 0x410b62
mov dword [ebp - 0x10350], 0
cmp dword [ebp - 0x10350], 0
je 0x410bdf
mov esi, esp
mov eax, dword [ebp - 0x48]
push eax
mov ecx, 0x10000
sub ecx, dword [ebp - 0x1005c]
push ecx
push 1
mov edx, dword [ebp - 0x1005c]
lea eax, [ebp + edx - 0x10050]
push eax
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
cmp esi, esp
call fcn.0041512c
mov dword [ebp - 0x10074], eax
cmp dword [ebp - 0x10074], 0
jne 0x410bae
jmp 0x410bdf
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0xc]
and ecx, 0x20
je 0x410bbb
jmp 0x410bdf
mov eax, dword [ebp - 0x1005c]
add eax, dword [ebp - 0x10074]
mov dword [ebp - 0x1005c], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0xc]
and ecx, 0x10
je 0x410bda
jmp 0x410bdf
jmp 0x410b30
mov esi, esp
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
cmp esi, esp
call fcn.0041512c
mov dword [ebp - 4], 0
push 1
mov eax, dword [ebp - 0x1005c]
push eax
lea ecx, [ebp - 0x10050]
push ecx
lea ecx, [ebp - 0x1008c]
call fcn.00413280
lea eax, [ebp - 0x10098]
push eax
lea ecx, [ebp - 0x1008c]
call fcn.00413cf0
cmp dword [ebp - 0x10098], 0x65ef0
jne 0x411188
mov dword [ebp - 0x100a4], 0
lea eax, [ebp - 0x100a4]
push eax
lea ecx, [ebp - 0x1008c]
call fcn.00413cf0
mov dword [ebp - 0x100b0], 0
jmp 0x410c70
mov eax, dword [ebp - 0x100b0]
add eax, 1
mov dword [ebp - 0x100b0], eax
mov eax, dword [ebp - 0x100b0]
cmp eax, dword [ebp - 0x100a4]
jae 0x411188
mov esi, esp
lea ecx, [ebp - 0x100d4]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
cmp esi, esp
call fcn.0041512c
mov byte [ebp - 4], 1
mov esi, esp
lea ecx, [ebp - 0x100f8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
cmp esi, esp
call fcn.0041512c
mov byte [ebp - 4], 2
mov dword [ebp - 0x10104], 0
mov dword [ebp - 0x10110], 0
lea eax, [ebp - 0x100d4]
push eax
lea ecx, [ebp - 0x1008c]
call fcn.00414320
lea eax, [ebp - 0x100d4]
push eax
lea ecx, [ebp - 0x10348]
push ecx
call fcn.00412b30
add esp, 8
mov dword [ebp - 0x10350], eax
mov edx, dword [ebp - 0x10350]
mov dword [ebp - 0x10354], edx
mov byte [ebp - 4], 3
mov esi, esp
mov eax, dword [ebp - 0x10354]
push eax
lea ecx, [ebp - 0x100d4]
call dword [sym.imp.MSVCP71.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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
cmp esi, esp
call fcn.0041512c
mov byte [ebp - 4], 2
mov esi, esp
lea ecx, [ebp - 0x10348]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp esi, esp
call fcn.0041512c
mov esi, esp
lea ecx, [ebp - 0x100d4]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
cmp esi, esp
call fcn.0041512c
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x410d65
mov dword [ebp - 0x10350], 0
jmp 0x410db5
mov esi, esp
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, esp
call fcn.0041512c
add eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
shl eax, 1
add eax, 3
and eax, 0xfffffffc
call fcn.00414e70
mov dword [ebp - 0x10354], esp
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x10354]
push ecx
call fcn.00411a00
mov dword [ebp - 0x10350], eax
mov edx, dword [ebp - 0x10350]
mov dword [ebp - 0x1011c], edx
lea eax, [ebp - 0x100f8]
push eax
lea ecx, [ebp - 0x1008c]
call fcn.00414320
lea eax, [ebp - 0x10104]
push eax
lea ecx, [ebp - 0x1008c]
call fcn.00413cf0
lea eax, [ebp - 0x10110]
push eax
lea ecx, [ebp - 0x1008c]
call fcn.00413cf0
mov esi, esp
lea ecx, [ebp - 0x100f8]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
cmp esi, esp
call fcn.0041512c
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x410e21
mov dword [ebp - 0x10350], 0
jmp 0x410e71
mov esi, esp
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, esp
call fcn.0041512c
add eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
shl eax, 1
add eax, 3
and eax, 0xfffffffc
call fcn.00414e70
mov dword [ebp - 0x10354], esp
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x10354]
push ecx
call fcn.00411a00
mov dword [ebp - 0x10350], eax
mov edx, dword [ebp - 0x10350]
mov dword [ebp - 0x10128], edx
lea ecx, [ebp - 0x1017c]
call fcn.00404a93
mov byte [ebp - 4], 4
mov esi, esp
mov eax, dword [ebp - 0x10128]
push eax
lea ecx, [ebp - 0x10324]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
cmp esi, esp
call fcn.0041512c
mov dword [ebp - 0x10350], eax
mov ecx, dword [ebp - 0x10350]
mov dword [ebp - 0x10354], ecx
mov byte [ebp - 4], 5
mov esi, esp
mov edx, dword [ebp - 0x10354]
push edx
lea ecx, [ebp - 0x10170]
call dword [0x41a190]
cmp esi, esp
call fcn.0041512c
mov byte [ebp - 4], 4
mov esi, esp
lea ecx, [ebp - 0x10324]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, esp
call fcn.0041512c
mov eax, dword [ebp - 0x10104]
mov dword [ebp - 0x10154], eax
mov dword [ebp - 0x10188], 0
jmp 0x410f1a
mov eax, dword [ebp - 0x10188]
add eax, 1
mov dword [ebp - 0x10188], eax
mov eax, dword [ebp - 0x10188]
cmp eax, dword [ebp - 0x10110]
jae 0x4110d6
mov esi, esp
lea ecx, [ebp - 0x101ac]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
cmp esi, esp
call fcn.0041512c
mov byte [ebp - 4], 6
lea eax, [ebp - 0x101ac]
push eax
lea ecx, [ebp - 0x1008c]
call fcn.00414320
lea eax, [ebp - 0x101ac]
push eax
lea ecx, [ebp - 0x10300]
push ecx
call fcn.00412b30
add esp, 8
mov dword [ebp - 0x10350], eax
mov edx, dword [ebp - 0x10350]
mov dword [ebp - 0x10354], edx
mov byte [ebp - 4], 7
mov esi, esp
mov eax, dword [ebp - 0x10354]
push eax
lea ecx, [ebp - 0x101ac]
call dword [sym.imp.MSVCP71.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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
cmp esi, esp
call fcn.0041512c
mov byte [ebp - 4], 6
mov esi, esp
lea ecx, [ebp - 0x10300]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp esi, esp
call fcn.0041512c
mov esi, esp
lea ecx, [ebp - 0x101ac]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
cmp esi, esp
call fcn.0041512c
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x410fe2
mov dword [ebp - 0x10350], 0
jmp 0x411032
mov esi, esp
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, esp
call fcn.0041512c
add eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
shl eax, 1
add eax, 3
and eax, 0xfffffffc
call fcn.00414e70
mov dword [ebp - 0x10354], esp
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x10354]
push ecx
call fcn.00411a00
mov dword [ebp - 0x10350], eax
mov edx, dword [ebp - 0x10350]
mov dword [ebp - 0x101b8], edx
mov eax, dword [ebp - 0x101b8]
push eax
call fcn.0040c964
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x4110b8
mov esi, esp
mov eax, dword [ebp - 0x101b8]
push eax
lea ecx, [ebp - 0x102dc]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
cmp esi, esp
call fcn.0041512c
mov dword [ebp - 0x10350], eax
mov ecx, dword [ebp - 0x10350]
mov dword [ebp - 0x10354], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x10354]
push edx
lea eax, [ebp - 0x102b8]
push eax
lea ecx, [ebp - 0x1017c]
call fcn.00402b82
mov byte [ebp - 4], 6
mov esi, esp
lea ecx, [ebp - 0x102dc]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, esp
call fcn.0041512c
mov byte [ebp - 4], 4
mov esi, esp
lea ecx, [ebp - 0x101ac]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp esi, esp
call fcn.0041512c
jmp 0x410f0b
mov eax, dword [ebp - 0x1011c]
push eax
call fcn.0040c964
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x411142
mov esi, esp
mov eax, dword [ebp - 0x1011c]
push eax
lea ecx, [ebp - 0x102a8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
cmp esi, esp
call fcn.0041512c
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1017c]
push ecx
lea edx, [ebp - 0x102a8]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405667
mov ecx, eax
call fcn.00404a58
mov byte [ebp - 4], 4
mov esi, esp
lea ecx, [ebp - 0x102a8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, esp
call fcn.0041512c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1017c]
call fcn.00404ad6
mov byte [ebp - 4], 1
mov esi, esp
lea ecx, [ebp - 0x100f8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp esi, esp
call fcn.0041512c
mov byte [ebp - 4], 0
mov esi, esp
lea ecx, [ebp - 0x100d4]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp esi, esp
call fcn.0041512c
jmp 0x410c61
jmp 0x411192
mov dword [ebp - 4], 0xffffffff
lea esp, [ebp - 0x10360]
push edx
mov ecx, ebp
push eax
lea edx, [0x4111c4]
call fcn.0041514f
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret