Function at 0x410f00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418b53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x10344
call fcn.00415360
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.0041561c
push eax
call fcn.0040cac5
add esp, 4
movzx eax, al
test eax, eax
jne 0x410f62
jmp 0x411689
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.0041561c
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x410f91
mov dword [ebp - 0x10350], 0
jmp 0x410fe0
mov esi, esp
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.0041561c
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
add eax, 3
and eax, 0xfffffffc
call fcn.00415360
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.0040727b
mov dword [ebp - 0x10350], eax
mov esi, esp
push 0x41b8f4
mov eax, dword [ebp - 0x10350]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
cmp esi, esp
call fcn.0041561c
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x41100c
jmp 0x411689
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 0x411048
mov dword [ebp - 0x10350], 1
jmp 0x411052
mov dword [ebp - 0x10350], 0
cmp dword [ebp - 0x10350], 0
je 0x4110cf
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.0041561c
mov dword [ebp - 0x10074], eax
cmp dword [ebp - 0x10074], 0
jne 0x41109e
jmp 0x4110cf
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0xc]
and ecx, 0x20
je 0x4110ab
jmp 0x4110cf
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 0x4110ca
jmp 0x4110cf
jmp 0x411020
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.0041561c
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.00413770
lea eax, [ebp - 0x10098]
push eax
lea ecx, [ebp - 0x1008c]
call fcn.004141e0
cmp dword [ebp - 0x10098], 0x65ef0
jne 0x411678
mov dword [ebp - 0x100a4], 0
lea eax, [ebp - 0x100a4]
push eax
lea ecx, [ebp - 0x1008c]
call fcn.004141e0
mov dword [ebp - 0x100b0], 0
jmp 0x411160
mov eax, dword [ebp - 0x100b0]
add eax, 1
mov dword [ebp - 0x100b0], eax
mov eax, dword [ebp - 0x100b0]
cmp eax, dword [ebp - 0x100a4]
jae 0x411678
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.0041561c
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.0041561c
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.00414810
lea eax, [ebp - 0x100d4]
push eax
lea ecx, [ebp - 0x10348]
push ecx
call fcn.00413020
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.0041561c
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.0041561c
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.0041561c
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x411255
mov dword [ebp - 0x10350], 0
jmp 0x4112a5
mov esi, esp
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, esp
call fcn.0041561c
add eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
shl eax, 1
add eax, 3
and eax, 0xfffffffc
call fcn.00415360
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.00411ef0
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.00414810
lea eax, [ebp - 0x10104]
push eax
lea ecx, [ebp - 0x1008c]
call fcn.004141e0
lea eax, [ebp - 0x10110]
push eax
lea ecx, [ebp - 0x1008c]
call fcn.004141e0
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.0041561c
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x411311
mov dword [ebp - 0x10350], 0
jmp 0x411361
mov esi, esp
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, esp
call fcn.0041561c
add eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
shl eax, 1
add eax, 3
and eax, 0xfffffffc
call fcn.00415360
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.00411ef0
mov dword [ebp - 0x10350], eax
mov edx, dword [ebp - 0x10350]
mov dword [ebp - 0x10128], edx
lea ecx, [ebp - 0x1017c]
call fcn.00404b2c
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.0041561c
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.0041561c
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.0041561c
mov eax, dword [ebp - 0x10104]
mov dword [ebp - 0x10154], eax
mov dword [ebp - 0x10188], 0
jmp 0x41140a
mov eax, dword [ebp - 0x10188]
add eax, 1
mov dword [ebp - 0x10188], eax
mov eax, dword [ebp - 0x10188]
cmp eax, dword [ebp - 0x10110]
jae 0x4115c6
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.0041561c
mov byte [ebp - 4], 6
lea eax, [ebp - 0x101ac]
push eax
lea ecx, [ebp - 0x1008c]
call fcn.00414810
lea eax, [ebp - 0x101ac]
push eax
lea ecx, [ebp - 0x10300]
push ecx
call fcn.00413020
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.0041561c
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.0041561c
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.0041561c
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x4114d2
mov dword [ebp - 0x10350], 0
jmp 0x411522
mov esi, esp
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, esp
call fcn.0041561c
add eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
shl eax, 1
add eax, 3
and eax, 0xfffffffc
call fcn.00415360
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.00411ef0
mov dword [ebp - 0x10350], eax
mov edx, dword [ebp - 0x10350]
mov dword [ebp - 0x101b8], edx
mov eax, dword [ebp - 0x101b8]
push eax
call fcn.0040cac5
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x4115a8
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.0041561c
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.00402bdc
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.0041561c
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.0041561c
jmp 0x4113fb
mov eax, dword [ebp - 0x1011c]
push eax
call fcn.0040cac5
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x411632
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.0041561c
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1017c]
push ecx
lea edx, [ebp - 0x102a8]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405700
mov ecx, eax
call fcn.00404af1
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.0041561c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1017c]
call fcn.00404b6f
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.0041561c
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.0041561c
jmp 0x411151
jmp 0x411682
mov dword [ebp - 4], 0xffffffff
lea esp, [ebp - 0x10360]
push edx
mov ecx, ebp
push eax
lea edx, [0x4116b4]
call fcn.0041563f
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