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

Disassembly:
push 0xffffffffffffffff
push 0x1009dd72
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x100cd8ec]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100cd8ec]
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 0x1007b8a7
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.1007e450
add esp, 0x14
test eax, eax
jne 0x1007b9a7
cmp dword [esp + 0x274], esi
mov eax, dword [esp + 0x260]
jae 0x1007b8e6
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.1007e450
add esp, 0x14
test eax, eax
jne 0x1007b9a7
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.MSVCR80.dll__wfopen]
push 0x100b0b30
push ecx
call edi
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x1007b9b2
mov edx, dword [esp + 0x1c]
push 0x100b0b28
push edx
call edi
add esp, 8
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x1007b9b2
push esi
call dword [sym.imp.MSVCR80.dll_feof]
add esp, 4
test eax, eax
jne 0x1007b9a1
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 0x1007b9ad
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 0x1007b960
xor ebx, ebx
or ebp, 0xffffffff
mov dword [esp + 0x14], ebx
jmp 0x1007b9b2
mov esi, dword [esp + 0x24]
jmp 0x1007b9b2
xor ebx, ebx
or ebp, 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov edi, dword [sym.imp.MSVCR80.dll_free]
je 0x1007b9c6
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x1007b9d4
push eax
call edi
add esp, 4
cmp esi, ebx
mov edi, dword [sym.imp.MSVCR80.dll_fclose]
je 0x1007ba19
push esi
call edi
add esp, 4
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x1007ba19
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 0x1007ba5c
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x1007ba2f
push eax
call edi
add esp, 4
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x1007b9ec
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.10090e24
add esp, 0x228
ret