Function at 0x410e70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418ac3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x10344
call fcn.004152d0
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.0041558c
push eax
call fcn.0040ca30
add esp, 4
movzx eax, al
test eax, eax
jne 0x410ed2
jmp 0x4115f9
call fcn.00401ec1
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.0041558c
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x410f01
mov dword [ebp - 0x10350], 0
jmp 0x410f50
mov esi, esp
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.0041558c
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
add eax, 3
and eax, 0xfffffffc
call fcn.004152d0
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.004071db
mov dword [ebp - 0x10350], eax
mov esi, esp
push 0x41b8e4
mov eax, dword [ebp - 0x10350]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
cmp esi, esp
call fcn.0041558c
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x410f7c
jmp 0x4115f9
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 0x410fb8
mov dword [ebp - 0x10350], 1
jmp 0x410fc2
mov dword [ebp - 0x10350], 0
cmp dword [ebp - 0x10350], 0
je 0x41103f
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.0041558c
mov dword [ebp - 0x10074], eax
cmp dword [ebp - 0x10074], 0
jne 0x41100e
jmp 0x41103f
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0xc]
and ecx, 0x20
je 0x41101b
jmp 0x41103f
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 0x41103a
jmp 0x41103f
jmp 0x410f90
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.0041558c
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.004136e0
lea eax, [ebp - 0x10098]
push eax
lea ecx, [ebp - 0x1008c]
call fcn.00414150
cmp dword [ebp - 0x10098], 0x65ef0
jne 0x4115e8
mov dword [ebp - 0x100a4], 0
lea eax, [ebp - 0x100a4]
push eax
lea ecx, [ebp - 0x1008c]
call fcn.00414150
mov dword [ebp - 0x100b0], 0
jmp 0x4110d0
mov eax, dword [ebp - 0x100b0]
add eax, 1
mov dword [ebp - 0x100b0], eax
mov eax, dword [ebp - 0x100b0]
cmp eax, dword [ebp - 0x100a4]
jae 0x4115e8
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.0041558c
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.0041558c
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.00414780
lea eax, [ebp - 0x100d4]
push eax
lea ecx, [ebp - 0x10348]
push ecx
call fcn.00412f40
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.0041558c
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.0041558c
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.0041558c
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x4111c5
mov dword [ebp - 0x10350], 0
jmp 0x411215
mov esi, esp
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, esp
call fcn.0041558c
add eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
shl eax, 1
add eax, 3
and eax, 0xfffffffc
call fcn.004152d0
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.00411e60
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.00414780
lea eax, [ebp - 0x10104]
push eax
lea ecx, [ebp - 0x1008c]
call fcn.00414150
lea eax, [ebp - 0x10110]
push eax
lea ecx, [ebp - 0x1008c]
call fcn.00414150
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.0041558c
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x411281
mov dword [ebp - 0x10350], 0
jmp 0x4112d1
mov esi, esp
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, esp
call fcn.0041558c
add eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
shl eax, 1
add eax, 3
and eax, 0xfffffffc
call fcn.004152d0
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.00411e60
mov dword [ebp - 0x10350], eax
mov edx, dword [ebp - 0x10350]
mov dword [ebp - 0x10128], edx
lea ecx, [ebp - 0x1017c]
call fcn.00404b2b
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.0041558c
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 [0x41a198]
cmp esi, esp
call fcn.0041558c
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.0041558c
mov eax, dword [ebp - 0x10104]
mov dword [ebp - 0x10154], eax
mov dword [ebp - 0x10188], 0
jmp 0x41137a
mov eax, dword [ebp - 0x10188]
add eax, 1
mov dword [ebp - 0x10188], eax
mov eax, dword [ebp - 0x10188]
cmp eax, dword [ebp - 0x10110]
jae 0x411536
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.0041558c
mov byte [ebp - 4], 6
lea eax, [ebp - 0x101ac]
push eax
lea ecx, [ebp - 0x1008c]
call fcn.00414780
lea eax, [ebp - 0x101ac]
push eax
lea ecx, [ebp - 0x10300]
push ecx
call fcn.00412f40
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.0041558c
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.0041558c
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.0041558c
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x411442
mov dword [ebp - 0x10350], 0
jmp 0x411492
mov esi, esp
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, esp
call fcn.0041558c
add eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
shl eax, 1
add eax, 3
and eax, 0xfffffffc
call fcn.004152d0
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.00411e60
mov dword [ebp - 0x10350], eax
mov edx, dword [ebp - 0x10350]
mov dword [ebp - 0x101b8], edx
mov eax, dword [ebp - 0x101b8]
push eax
call fcn.0040ca30
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x411518
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.0041558c
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.00402be6
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.0041558c
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.0041558c
jmp 0x41136b
mov eax, dword [ebp - 0x1011c]
push eax
call fcn.0040ca30
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x4115a2
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.0041558c
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1017c]
push ecx
lea edx, [ebp - 0x102a8]
push edx
mov ecx, dword [ebp + 8]
call fcn.004056ff
mov ecx, eax
call fcn.00404af0
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.0041558c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1017c]
call fcn.00404b6e
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.0041558c
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.0041558c
jmp 0x4110c1
jmp 0x4115f2
mov dword [ebp - 4], 0xffffffff
lea esp, [ebp - 0x10360]
push edx
mov ecx, ebp
push eax
lea edx, [0x411624]
call fcn.004155af
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