Function at 0x1007aef0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1009d342
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x100cc8ec]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100cc8ec]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x238], ebx
mov eax, dword [esp + 0x244]
or ebp, 0xffffffff
mov esi, 0x10
cmp dword [esp + 0x258], esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
jae 0x1007af67
lea eax, [esp + 0x244]
mov ecx, dword [esp + 0x254]
push ecx
push eax
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x24]
push eax
push 0xfde9
call fcn.1007daf0
add esp, 0x14
test eax, eax
jne 0x1007b067
cmp dword [esp + 0x274], esi
mov eax, dword [esp + 0x260]
jae 0x1007afa6
lea eax, [esp + 0x260]
mov ecx, dword [esp + 0x270]
push ecx
push eax
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
push 0xfde9
call fcn.1007daf0
add esp, 0x14
test eax, eax
jne 0x1007b067
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.MSVCR80.dll__wfopen]
push 0x100af998
push ecx
call edi
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x1007b072
mov edx, dword [esp + 0x1c]
push 0x100af990
push edx
call edi
add esp, 8
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x1007b072
push esi
call dword [sym.imp.MSVCR80.dll_feof]
add esp, 4
test eax, eax
jne 0x1007b061
mov ebp, dword [sym.imp.MSVCR80.dll_fread]
mov ebx, dword [sym.imp.MSVCR80.dll_ferror]
mov edi, edi
push esi
push 0x200
lea eax, [esp + 0x34]
push 1
push eax
call ebp
push esi
mov edi, eax
call ebx
add esp, 0x14
test eax, eax
jne 0x1007b06d
mov ecx, dword [esp + 0x20]
push ecx
push edi
lea edx, [esp + 0x34]
push 1
push edx
call dword [sym.imp.MSVCR80.dll_fwrite]
push esi
call dword [sym.imp.MSVCR80.dll_feof]
add esp, 0x14
test eax, eax
je 0x1007b020
xor ebx, ebx
or ebp, 0xffffffff
mov dword [esp + 0x14], ebx
jmp 0x1007b072
mov esi, dword [esp + 0x24]
jmp 0x1007b072
xor ebx, ebx
or ebp, 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov edi, dword [sym.imp.MSVCR80.dll_free]
je 0x1007b086
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x1007b094
push eax
call edi
add esp, 4
cmp esi, ebx
mov edi, dword [sym.imp.MSVCR80.dll_fclose]
je 0x1007b0d9
push esi
call edi
add esp, 4
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x1007b0d9
lea ecx, [esp + 0x240]
mov byte [esp + 0x238], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x25c]
mov dword [esp + 0x238], ebp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, ebp
jmp 0x1007b11c
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x1007b0ef
push eax
call edi
add esp, 4
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x1007b0ac
lea ecx, [esp + 0x240]
mov byte [esp + 0x238], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x25c]
mov dword [esp + 0x238], ebp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.10090524
add esp, 0x228
ret