Function at 0x413d80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ca73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x10344
call fcn.00418d80
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.0041910c
push eax
call fcn.0040f59c
add esp, 4
movzx eax, al
test eax, eax
jne 0x413de2
jmp 0x414509
call fcn.00409cf7
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.0041910c
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x413e11
mov dword [ebp - 0x10350], 0
jmp 0x413e60
mov esi, esp
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.0041910c
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
add eax, 3
and eax, 0xfffffffc
call fcn.00418d80
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.00409cfd
mov dword [ebp - 0x10350], eax
mov esi, esp
push 0x41fc64
mov eax, dword [ebp - 0x10350]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
cmp esi, esp
call fcn.0041910c
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x413e8c
jmp 0x414509
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 0x413ec8
mov dword [ebp - 0x10350], 1
jmp 0x413ed2
mov dword [ebp - 0x10350], 0
cmp dword [ebp - 0x10350], 0
je 0x413f4f
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.0041910c
mov dword [ebp - 0x10074], eax
cmp dword [ebp - 0x10074], 0
jne 0x413f1e
jmp 0x413f4f
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0xc]
and ecx, 0x20
je 0x413f2b
jmp 0x413f4f
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 0x413f4a
jmp 0x413f4f
jmp 0x413ea0
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.0041910c
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.004165f0
lea eax, [ebp - 0x10098]
push eax
lea ecx, [ebp - 0x1008c]
call fcn.00417060
cmp dword [ebp - 0x10098], 0x65ef0
jne 0x4144f8
mov dword [ebp - 0x100a4], 0
lea eax, [ebp - 0x100a4]
push eax
lea ecx, [ebp - 0x1008c]
call fcn.00417060
mov dword [ebp - 0x100b0], 0
jmp 0x413fe0
mov eax, dword [ebp - 0x100b0]
add eax, 1
mov dword [ebp - 0x100b0], eax
mov eax, dword [ebp - 0x100b0]
cmp eax, dword [ebp - 0x100a4]
jae 0x4144f8
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.0041910c
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.0041910c
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.00417690
lea eax, [ebp - 0x100d4]
push eax
lea ecx, [ebp - 0x10348]
push ecx
call fcn.00415ea0
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.0041910c
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.0041910c
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.0041910c
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x4140d5
mov dword [ebp - 0x10350], 0
jmp 0x414125
mov esi, esp
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, esp
call fcn.0041910c
add eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
shl eax, 1
add eax, 3
and eax, 0xfffffffc
call fcn.00418d80
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.00414d70
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.00417690
lea eax, [ebp - 0x10104]
push eax
lea ecx, [ebp - 0x1008c]
call fcn.00417060
lea eax, [ebp - 0x10110]
push eax
lea ecx, [ebp - 0x1008c]
call fcn.00417060
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.0041910c
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x414191
mov dword [ebp - 0x10350], 0
jmp 0x4141e1
mov esi, esp
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, esp
call fcn.0041910c
add eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
shl eax, 1
add eax, 3
and eax, 0xfffffffc
call fcn.00418d80
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.00414d70
mov dword [ebp - 0x10350], eax
mov edx, dword [ebp - 0x10350]
mov dword [ebp - 0x10128], edx
lea ecx, [ebp - 0x1017c]
call fcn.00407176
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.0041910c
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 [0x41e210]
cmp esi, esp
call fcn.0041910c
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.0041910c
mov eax, dword [ebp - 0x10104]
mov dword [ebp - 0x10154], eax
mov dword [ebp - 0x10188], 0
jmp 0x41428a
mov eax, dword [ebp - 0x10188]
add eax, 1
mov dword [ebp - 0x10188], eax
mov eax, dword [ebp - 0x10188]
cmp eax, dword [ebp - 0x10110]
jae 0x414446
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.0041910c
mov byte [ebp - 4], 6
lea eax, [ebp - 0x101ac]
push eax
lea ecx, [ebp - 0x1008c]
call fcn.00417690
lea eax, [ebp - 0x101ac]
push eax
lea ecx, [ebp - 0x10300]
push ecx
call fcn.00415ea0
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.0041910c
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.0041910c
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.0041910c
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x414352
mov dword [ebp - 0x10350], 0
jmp 0x4143a2
mov esi, esp
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, esp
call fcn.0041910c
add eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
shl eax, 1
add eax, 3
and eax, 0xfffffffc
call fcn.00418d80
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.00414d70
mov dword [ebp - 0x10350], eax
mov edx, dword [ebp - 0x10350]
mov dword [ebp - 0x101b8], edx
mov eax, dword [ebp - 0x101b8]
push eax
call fcn.0040f59c
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x414428
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.0041910c
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.004030b4
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.0041910c
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.0041910c
jmp 0x41427b
mov eax, dword [ebp - 0x1011c]
push eax
call fcn.0040f59c
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x4144b2
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.0041910c
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1017c]
push ecx
lea edx, [ebp - 0x102a8]
push edx
mov ecx, dword [ebp + 8]
call fcn.00407d5e
mov ecx, eax
call fcn.0040713b
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.0041910c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1017c]
call fcn.004071b9
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.0041910c
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.0041910c
jmp 0x413fd1
jmp 0x414502
mov dword [ebp - 4], 0xffffffff
lea esp, [ebp - 0x10360]
push edx
mov ecx, ebp
push eax
lea edx, [0x414534]
call fcn.0041912f
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