Function at 0x4253b0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43b336
push eax
mov dword fs:[0], esp
sub esp, 0x80
push esi
push edi
mov edi, dword [esp + 0x98]
push 0x43d76c
push edi
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x42547d
push str.Library
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, dword [str.KTLog.txt]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x94], esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x90], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x441df4
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x28]
push esi
push edx
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x18
lea ecx, [esp + 0x18]
mov byte [esp + 0x90], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x34]
mov dword [esp + 0x90], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
add esp, 0x8c
ret
push ebx
mov ebx, dword [sym.imp.MSVCR71.dll_fseek]
push ebp
push 2
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCR71.dll_ftell]
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x425527
push str.Library
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, dword [str.KTLog.txt]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x9c], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push edi
push 0x441de4
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x48]
push ebp
push edx
mov byte [esp + 0xac], 3
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x14
lea ecx, [esp + 0x3c]
mov byte [esp + 0x98], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x20]
mov dword [esp + 0x98], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
mov eax, 0xfffffffd
jmp 0x4256b1
push ebp
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
push 0
push 0
push esi
mov edi, eax
call ebx
push esi
push 1
push ebp
push edi
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x20
cmp eax, 1
je 0x4255ec
push str.Library
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, dword [str.KTLog.txt]
mov ebx, 4
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x9c], ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x98], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0xa0]
push eax
push ecx
push 0x441dd0
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x68]
push 0
push eax
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x18
lea ecx, [esp + 0x58]
mov byte [esp + 0x98], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x74]
mov dword [esp + 0x98], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 8
mov eax, 0xfffffffc
jmp 0x4256b1
lea ecx, [esp + 0x10]
call fcn.004304a0
push ebp
push edi
lea ecx, [esp + 0x18]
call fcn.00430430
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
push 0x10
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov edx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x28]
mov dword [eax + 0xc], edx
mov dl, byte [eax + 3]
mov cl, byte [eax]
mov byte [eax], dl
mov byte [eax + 3], cl
mov dl, byte [eax + 2]
mov cl, byte [eax + 1]
mov byte [eax + 1], dl
mov byte [eax + 2], cl
mov dl, byte [eax + 7]
mov cl, byte [eax + 4]
mov byte [eax + 4], dl
mov byte [eax + 7], cl
mov dl, byte [eax + 6]
mov cl, byte [eax + 5]
mov byte [eax + 5], dl
mov byte [eax + 6], cl
mov dl, byte [eax + 0xb]
mov cl, byte [eax + 8]
mov byte [eax + 8], dl
mov byte [eax + 0xb], cl
mov dl, byte [eax + 0xa]
mov cl, byte [eax + 9]
mov byte [eax + 9], dl
mov byte [eax + 0xa], cl
mov dl, byte [eax + 0xf]
mov cl, byte [eax + 0xc]
mov byte [eax + 0xc], dl
mov byte [eax + 0xf], cl
mov dl, byte [eax + 0xe]
mov cl, byte [eax + 0xd]
mov byte [eax + 0xd], dl
mov byte [eax + 0xe], cl
mov edx, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [esp + 0xb0]
xor edx, edi
mov dword [ecx], edx
mov edx, dword [eax + 0xc]
xor edx, dword [eax + 8]
push eax
mov dword [ecx + 4], edx
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x90]
pop ebp
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x8c
ret