Function at 0x4798a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c656
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x4b666c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
push 0
lea ecx, [ebp + 0xc]
call fcn.004113f0
push eax
lea ecx, [ebp - 0x9c]
call fcn.0042da20
mov byte [ebp - 4], 2
push 0
lea ecx, [ebp + 0x10]
call fcn.004113f0
push eax
lea ecx, [ebp - 0x15c]
call fcn.0042da20
mov byte [ebp - 4], 3
push 0
call fcn.0047d960
add esp, 4
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x198], edx
mov byte [ebp - 0x190], 0
xor eax, eax
mov dword [ebp - 0x18f], eax
mov dword [ebp - 0x18b], eax
mov dword [ebp - 0x187], eax
mov dword [ebp - 0x183], eax
mov dword [ebp - 0x17f], eax
mov ecx, dword [ebp - 0x198]
push ecx
mov edx, dword [ebp - 0x19c]
push edx
push 0x4a0594
push 0x15
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0x14
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xd4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov byte [ebp - 4], 5
cmp dword [ebp + 0x14], 1
jne 0x4799a4
push str.flaglogin
lea ecx, [ebp - 0xd4]
call dword [0x48e2c0]
jmp 0x479a25
cmp dword [ebp + 0x14], 2
jne 0x479a25
push str.flaglogout
lea ecx, [ebp - 0xd4]
call dword [0x48e2c0]
mov byte [ebp - 0x1b4], 0
xor ecx, ecx
mov dword [ebp - 0x1b3], ecx
mov dword [ebp - 0x1af], ecx
mov dword [ebp - 0x1ab], ecx
mov dword [ebp - 0x1a7], ecx
mov dword [ebp - 0x1a3], ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
push 0x4a05b4
push 0x15
lea ecx, [ebp - 0x1b4]
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0x14
push str.use_time
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MSVCP90.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__::append_char_const__]
lea edx, [ebp - 0x1b4]
push edx
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MSVCP90.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__::append_char_const__]
push 0x4a05c4
lea ecx, [ebp - 0x178]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [ebp - 4], 6
push 0x4b6a4c
lea ecx, [ebp - 0x1d0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov byte [ebp - 4], 7
push str._version.dat
lea ecx, [ebp - 0x1d0]
call dword [sym.imp.MSVCP90.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 dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1d8], 0
push 0x4a05d8
lea ecx, [ebp - 0x1d0]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea eax, [ebp - 0x1d4]
push eax
call dword [sym.imp.MSVCR90.dll_fopen_s]
add esp, 0xc
mov dword [ebp - 0x1d8], eax
cmp dword [ebp - 0x1d8], 0
jne 0x479bd5
push 0
push 0
mov ecx, dword [ebp - 0x1d4]
push ecx
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 0x1d4]
push edx
call dword [sym.imp.MSVCR90.dll_ferror]
add esp, 4
test eax, eax
jne 0x479bd5
push 2
push 0
mov eax, dword [ebp - 0x1d4]
push eax
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 0x1d4]
push ecx
call dword [sym.imp.MSVCR90.dll_ftell]
add esp, 4
mov dword [ebp - 0x1dc], eax
push 0
push 0
mov edx, dword [ebp - 0x1d4]
push edx
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
cmp dword [ebp - 0x1dc], 0
je 0x479bd5
mov eax, dword [ebp - 0x1dc]
add eax, 1
push eax
call fcn.0047f2d5
add esp, 4
mov dword [ebp - 0x1e8], eax
mov ecx, dword [ebp - 0x1e8]
mov dword [ebp - 0x1e4], ecx
mov edx, dword [ebp - 0x1dc]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0x1e4]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x1d4]
push ecx
mov edx, dword [ebp - 0x1dc]
push edx
push 1
mov eax, dword [ebp - 0x1e4]
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
mov dword [ebp - 0x1e0], eax
mov ecx, dword [ebp - 0x1e4]
add ecx, dword [ebp - 0x1e0]
mov byte [ecx], 0
mov edx, dword [ebp - 0x1e4]
push edx
lea ecx, [ebp - 0x178]
call dword [0x48e2c0]
cmp dword [ebp - 0x1e4], 0
je 0x479bd5
mov eax, dword [ebp - 0x1e4]
mov dword [ebp - 0x1ec], eax
mov ecx, dword [ebp - 0x1ec]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp - 0x1e4], 0
cmp dword [ebp - 0x1d4], 0
je 0x479bee
mov edx, dword [ebp - 0x1d4]
push edx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1d0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
push 0x4a05dc
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP90.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__::append_char_const__]
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP90.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__::append_char_const__]
push 0x4a05e8
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP90.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__::append_char_const__]
mov ecx, dword [ebp - 0x15c]
push ecx
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP90.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__::append_char_const__]
push 0x4a05f4
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP90.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__::append_char_const__]
lea edx, [ebp - 0x190]
push edx
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP90.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__::append_char_const__]
push 0x4a0600
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP90.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__::append_char_const__]
push 0x4a0614
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP90.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__::append_char_const__]
push str.package_version
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP90.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__::append_char_const__]
lea eax, [ebp - 0x178]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP90.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__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0xd4]
push ecx
mov ecx, dword [ebp + 8]
call dword [0x48e2e8]
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MSVCP90.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 0x479cce
lea eax, [ebp - 0xb8]
push eax
mov ecx, dword [ebp + 8]
call dword [0x48e2e8]
push 0x4a0630
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP90.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__::append_char_const__]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x178]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xd4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x15c]
call fcn.0042da50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x9c]
call fcn.0042da50
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00411360
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00411360
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047f406
mov esp, ebp
pop ebp
ret