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

Disassembly:
push 0xffffffffffffffff
push 0x437dfa
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44f008]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [esp + 0x94]
mov edi, 0x10
cmp dword [esp + 0xa8], edi
mov dword [esp + 0x88], 2
jae 0x42bfe1
lea eax, [esp + 0x94]
mov esi, dword [sym.imp.MSVCR80.dll_fopen]
push 0x443a04
push eax
call esi
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x42c08b
sub esp, 0x1c
lea eax, [esp + 0xe8]
mov ecx, esp
mov dword [esp + 0xe4], esp
push eax
call dword [sym.imp.MSVCP80.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__]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x60], esp
mov byte [esp + 0xc0], 3
push str.FileProgress__open_src_failed
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0xc0], 2
call fcn.0042acb0
add esp, 0x38
lea ecx, [esp + 0x90]
mov byte [esp + 0x88], 1
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 + 0xac]
mov byte [esp + 0x88], 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 + 0xcc]
mov dword [esp + 0x88], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
jmp 0x42c3db
cmp dword [esp + 0xc4], edi
mov eax, dword [esp + 0xb0]
jae 0x42c0a2
lea eax, [esp + 0xb0]
push 0x444588
push eax
call esi
add esp, 8
test eax, eax
mov dword [esp + 0x18], eax
jne 0x42c0ea
sub esp, 0x1c
lea edx, [esp + 0xe8]
mov ecx, esp
mov dword [esp + 0xe4], esp
push edx
call dword [sym.imp.MSVCP80.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__]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x60], esp
mov byte [esp + 0xc0], 4
push str.FileProgress__open_dest_failed
jmp 0x42c02c
mov edi, dword [sym.imp.MSVCR80.dll_fseek]
push 2
push 0
push ebp
call edi
push ebp
call dword [sym.imp.MSVCR80.dll_ftell]
push 0
mov esi, eax
push 0
push ebp
mov dword [esp + 0x44], esi
call edi
mov edi, dword [esp + 0xe4]
add esp, 0x1c
cmp esi, edi
jge 0x42c11b
mov edi, esi
mov eax, esi
cdq
idiv edi
mov ebx, eax
lea eax, [edi + 1]
push eax
push 0x10
mov dword [esp + 0x1c], ebx
call fcn.00420070
mov esi, eax
xor eax, eax
add esp, 8
cmp esi, eax
jne 0x42c171
sub esp, 0x1c
lea edx, [esp + 0xe8]
mov ecx, esp
mov dword [esp + 0xe4], esp
push edx
call dword [sym.imp.MSVCP80.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__]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x60], esp
mov byte [esp + 0xc0], 5
push 0x43f8c0
jmp 0x42c02c
cmp ebx, eax
mov ebx, dword [sym.imp.MSVCR80.dll_fread]
mov dword [esp + 0xc8], eax
jle 0x42c2ab
mov eax, dword [esp + 0x14]
fild dword [esp + 0x14]
imul eax, edi
fstp dword [esp + 0x20]
mov dword [esp + 0x24], eax
lea esp, [esp]
push ebp
push 1
push edi
push esi
call ebx
mov eax, dword [esp + 0x28]
push eax
push 1
push edi
push esi
call dword [sym.imp.MSVCR80.dll_fwrite]
mov ecx, dword [0x4a4300]
fld dword [ecx*4 + 0x454300]
add esp, 0x18
fmul qword [0x43f8b8]
fstp qword [esp]
push str._.1f
call fcn.00404080
add esp, 0xc
push 0x43f8ac
lea ecx, [esp + 0x68]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea edx, [esp + 0xac]
push edx
push eax
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x94], 6
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 0x43f8a0
push eax
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0xa0], 7
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x18
cmp dword [eax + 0x18], 0x10
jb 0x42c232
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
jmp 0x42c239
add eax, 4
mov dword [esp + 0x1c], eax
fild dword [esp + 0xc8]
fmul qword [0x43f898]
fdiv dword [esp + 0x20]
call fcn.00436b80
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 8
lea ecx, [esp + 0x2c]
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 + 0x48]
mov byte [esp + 0x88], 6
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 + 0x64]
mov byte [esp + 0x88], 2
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 + 0xc8]
add eax, 1
cmp eax, dword [esp + 0x14]
mov dword [esp + 0xc8], eax
jl 0x42c1a0
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cmp eax, edi
jge 0x42c2f1
push ebp
sub edi, eax
push 1
push edi
push esi
call ebx
mov ecx, dword [esp + 0x28]
push ecx
push 1
push edi
push esi
call dword [sym.imp.MSVCR80.dll_fwrite]
mov edx, dword [0x4a4300]
fld dword [edx*4 + 0x454300]
add esp, 0x18
fmul qword [0x43f8b8]
fstp qword [esp]
push str._.1f
call fcn.00404080
add esp, 0xc
push 0x43f88c
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0xac]
push ecx
push eax
lea edx, [esp + 0x50]
mov bl, 8
push edx
mov byte [esp + 0x94], bl
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push str....100____n
push eax
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0xa0], 9
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x18
cmp dword [eax + 0x18], 0x10
jb 0x42c344
mov eax, dword [eax + 4]
jmp 0x42c347
add eax, 4
push eax
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 4
lea ecx, [esp + 0x64]
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 + 0x48]
mov byte [esp + 0x88], bl
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 + 0x2c]
mov byte [esp + 0x88], 2
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 edi, dword [sym.imp.MSVCR80.dll_fclose]
push ebp
call edi
mov ecx, dword [esp + 0x1c]
push ecx
call edi
push esi
call fcn.00420060
add esp, 0xc
lea ecx, [esp + 0x90]
mov byte [esp + 0x88], 1
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 + 0xac]
mov byte [esp + 0x88], 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 + 0xcc]
mov dword [esp + 0x88], 0xffffffff
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 al, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 0x58