Function at 0x4159d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425139
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov eax, dword [0x42fc60]
mov dword [ebp - 0x14], eax
push 0x427d68
lea ecx, [ebp + 8]
call fcn.004217a0
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x415a6e
cmp dword [ebp + 0x10], 0
je 0x415a67
lea eax, [ebp - 0xd4]
push eax
call fcn.00417e10
add esp, 4
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x104]
mov dword [ebp - 0x108], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x108]
push edx
mov ecx, dword [ebp + 0x10]
call dword [0x426080]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
jmp 0x415ca2
cmp dword [ebp + 0x14], 0
je 0x415a81
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x10c], ecx
jmp 0x415a8b
mov dword [ebp - 0x10c], 0
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0x80], edx
mov byte [ebp - 0x98], 0
xor eax, eax
mov dword [ebp - 0x97], eax
mov dword [ebp - 0x93], eax
mov dword [ebp - 0x8f], eax
mov dword [ebp - 0x8b], eax
mov word [ebp - 0x87], ax
mov byte [ebp - 0x85], al
mov ecx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
push edx
push 0
mov ecx, dword [ebp + 0xc]
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__::erase_unsigned_int__unsigned_int_]
push 2
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR71.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCR71.dll_ftell]
add esp, 4
mov dword [ebp - 0x84], eax
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.MSVCR71.dll_fseek]
add esp, 0xc
cmp dword [ebp - 0x84], 0
je 0x415c52
mov eax, dword [ebp - 0x84]
add eax, 1
push eax
call fcn.00423f69
add esp, 4
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x10]
push edx
push 1
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
mov edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp + 0xc]
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__::assign_char_const___unsigned_int_]
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0xdc], ecx
mov edx, dword [ebp - 0xdc]
push edx
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
push ecx
mov ecx, esp
mov dword [ebp - 0xe0], esp
mov eax, dword [ebp + 0xc]
push eax
call fcn.004095d0
lea ecx, [ebp - 0xb8]
push ecx
call fcn.00416ea0
add esp, 8
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MSVCP71.dll_public:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::empty_void_const]
movzx edx, al
test edx, edx
jne 0x415be6
push 5
push 0x427d6c
lea ecx, [ebp - 0xb8]
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]
push eax
call fcn.0041d8c0
add esp, 0xc
test eax, eax
jne 0x415c3f
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0xe4], esp
mov eax, dword [ebp + 0xc]
push eax
call fcn.004095d0
lea ecx, [ebp - 0x100]
push ecx
call fcn.00416c50
add esp, 0xc
mov dword [ebp - 0x110], eax
mov edx, dword [ebp - 0x110]
mov dword [ebp - 0x114], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp + 0xc]
call dword [0x426080]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [ebp - 0x84]
push ecx
lea edx, [ebp - 0x98]
push edx
push 0x427d74
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x415c85
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, dword [ebp + 0x10]
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_char_const__]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
cmp dword [ebp + 0x14], 0
je 0x415ca0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x80]
mov dword [eax], ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00423fdd
mov esp, ebp
pop ebp
ret