Function at 0x1000aff0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x101c49e8
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1023d1a4]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov eax, dword [esp + 0xbc]
push eax
call fcn.1000f8c0
mov ebx, dword [esp + 0xbc]
add esp, 4
push eax
push ebx
call fcn.1000f8c0
mov esi, dword [esp + 0xbc]
add esp, 4
push eax
push esi
call fcn.1000f8c0
mov edi, dword [esp + 0xbc]
add esp, 4
push eax
push edi
call fcn.1000f8c0
add esp, 4
push eax
push str.wsps:__s____s____s____s_
push 0xa
push 0x1023e498
call fcn.1000f2e0
xor ebp, ebp
add esp, 0x1c
cmp esi, ebp
je 0x1000b5fd
cmp ebx, ebp
je 0x1000b5fd
cmp dword [esp + 0xbc], ebp
je 0x1000b5fd
push 1
lea ecx, [esp + 0x90]
mov dword [esp + 0x24], ebp
call fcn.1000fe60
push 1
lea ecx, [esp + 0x68]
mov dword [esp + 0xac], ebp
call fcn.1000fe60
push 1
lea ecx, [esp + 0x7c]
mov byte [esp + 0xac], 1
call fcn.1000fe60
mov byte [esp + 0xa8], 2
cmp edi, ebp
je 0x1000b162
lea ecx, [esp + 0x38]
push ecx
push 0xffffffffffffffff
push edi
push ebp
lea ecx, [esp + 0x9c]
call fcn.10010290
mov ebx, eax
mov dword [esp + 0x2c], ebx
cmp ebx, ebp
jne 0x1000b168
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
push eax
call fcn.1000e220
add esp, 8
mov edi, eax
mov esi, vtable.CAhnI2s_Memory.0
lea ecx, [esp + 0x78]
mov byte [esp + 0xa8], 1
mov dword [esp + 0x78], esi
call fcn.1000ffe0
lea ecx, [esp + 0x64]
mov byte [esp + 0xa8], 0
mov dword [esp + 0x64], esi
call fcn.1000ffe0
lea ecx, [esp + 0x8c]
mov dword [esp + 0xa8], 0xffffffff
mov dword [esp + 0x8c], esi
call fcn.1000ffe0
mov eax, edi
jmp 0x1000b613
mov dword [esp + 0x2c], ebp
mov ebx, ebp
lea ecx, [esp + 0x38]
push ecx
push 0xffffffffffffffff
push esi
push ebp
lea ecx, [esp + 0x74]
call fcn.10010290
mov edi, eax
mov dword [esp + 0x28], edi
cmp edi, ebp
je 0x1000b0fa
mov edx, dword [esp + 0xb8]
lea ecx, [esp + 0x38]
push ecx
push 0xffffffffffffffff
push edx
push ebp
lea ecx, [esp + 0x88]
call fcn.10010290
mov dword [esp + 0x50], eax
cmp eax, ebp
jne 0x1000b214
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
call fcn.1000e220
mov esi, vtable.CAhnI2s_Memory.0
add esp, 8
lea ecx, [esp + 0x78]
mov edi, eax
mov byte [esp + 0xa8], 1
mov dword [esp + 0x78], esi
call fcn.1000ffe0
lea ecx, [esp + 0x64]
mov byte [esp + 0xa8], 0
mov dword [esp + 0x64], esi
call fcn.1000ffe0
lea ecx, [esp + 0x8c]
mov dword [esp + 0xa8], 0xffffffff
mov dword [esp + 0x8c], esi
call fcn.1000ffe0
mov eax, edi
jmp 0x1000b613
push closesocket
push eax
call fcn.1000f430
mov esi, eax
push closesocket
push edi
mov dword [esp + 0x54], esi
call fcn.1000f430
mov edi, eax
push closesocket
push ebx
mov dword [esp + 0x78], edi
call fcn.1000f430
mov edx, dword [esp + 0xd4]
add esp, 0x18
push ebp
push 0x80
push 4
push ebp
push ebp
mov dword [esp + 0x60], eax
push 0xc0000000
add eax, edi
push edx
lea edi, [eax + esi + 0x10]
mov dword [esp + 0x34], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x40], ebx
cmp ebx, 0xffffffff
jne 0x1000b28e
mov esi, 0x220f1f07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x20]
jmp 0x1000b5d2
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000b2b4
mov dword [esp + 0x18], 0x220f1f08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
jmp 0x1000b5bb
lea ecx, [esp + 0x30]
lea eax, [esi + edi]
push ecx
push eax
mov dword [esp + 0x5c], eax
call fcn.1000a980
mov edi, eax
cmp edi, ebp
jne 0x1000b2e1
mov dword [esp + 0x18], 0x220f1e01
mov dword [esp + 0x14], 0xe
jmp 0x1000b5bb
xor ebx, ebx
mov byte [edi], 0
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x48], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], ebp
test esi, esi
je 0x1000b405
lea edx, [esp + 0x30]
push edx
push esi
mov dword [esp + 0x28], ebx
call fcn.1000a980
mov dword [esp + 0x34], eax
test eax, eax
jne 0x1000b32a
mov dword [esp + 0x18], 0x220f1e01
mov dword [esp + 0x14], 0xe
jmp 0x1000b5af
mov edx, dword [esp + 0x40]
push 0
lea ecx, [esp + 0x5c]
push ecx
push esi
push eax
push edx
mov dword [esp + 0x6c], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000b35d
mov dword [esp + 0x18], 0x220f1f09
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
jmp 0x1000b3f0
cmp dword [esp + 0x58], esi
je 0x1000b375
mov dword [esp + 0x18], 0x220f1f09
mov dword [esp + 0x14], 0
jmp 0x1000b3f0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push 0
push eax
push ecx
push edi
mov dword [esp + 0x30], 1
call fcn.1000abb0
mov eax, dword [esp + 0xb0]
mov byte [edi + esi], 0
test eax, eax
je 0x1000b3d4
cmp word [eax], 0
je 0x1000b3d4
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x4c]
push eax
mov eax, edi
call fcn.1000a6f0
mov ebx, dword [esp + 0x50]
add esp, 8
mov dword [esp + 0x5c], eax
test eax, eax
je 0x1000b3f0
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push edx
jmp 0x1000b3e0
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
mov eax, edi
call fcn.1000a850
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
add esp, 8
mov edx, dword [esp + 0x34]
push edx
call fcn.1000aa00
cmp dword [esp + 0x20], 0
je 0x1000b5af
push closesocket
push edi
mov dword [esp + 0x28], 0
call fcn.1000f430
add esp, 8
mov dword [esp + 0x30], eax
test ebp, ebp
je 0x1000b467
mov ebx, dword [esp + 0x24]
test ebx, ebx
jne 0x1000b431
mov dword [esp + 0x24], ebp
mov ebx, ebp
mov esi, ebx
sub esi, ebp
add esi, dword [esp + 0x44]
sub eax, ebp
push esi
lea eax, [eax + edi + 1]
push eax
mov eax, dword [esp + 0x5c]
sub ebp, edi
push ebp
push eax
push edi
call fcn.10010440
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x64]
push ecx
push edx
push ebx
call sub.MSVCR90.dll_memcpy
add esp, 0x20
jmp 0x1000b512
cmp dword [esp + 0x5c], 0
jne 0x1000b486
mov ecx, dword [esp + 0xb0]
test ecx, ecx
je 0x1000b486
cmp word [ecx], 0
je 0x1000b486
mov ebp, 1
jmp 0x1000b488
xor ebp, ebp
test ebx, ebx
jne 0x1000b48f
lea ebx, [eax + edi]
mov cl, byte [ebx]
mov edx, dword [esp + 0x60]
mov byte [esp + 0x1f], cl
mov ecx, dword [esp + 0x44]
lea esi, [edx + ecx + 3]
test ebp, ebp
je 0x1000b4ad
mov edx, dword [esp + 0x4c]
lea esi, [esi + edx + 4]
mov ecx, dword [esp + 0x54]
sub eax, ebx
lea eax, [eax + edi + 1]
push esi
push eax
mov eax, ebx
sub eax, edi
push eax
push ecx
push edi
call fcn.10010440
add esp, 0x14
test ebp, ebp
je 0x1000b4ef
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
push str._r_n__s__r_n_s_s
lea edx, [esi + 1]
push edx
push ebx
call fcn.10009470
add esp, 0x18
jmp 0x1000b50b
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push str._r_n_s_s
lea edx, [esi + 1]
push edx
push ebx
call fcn.10009470
add esp, 0x14
mov al, byte [esp + 0x1f]
mov byte [esi + ebx], al
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x4c]
push ecx
add esi, edx
push esi
call fcn.1000a980
mov esi, eax
test esi, esi
jne 0x1000b53b
mov dword [esp + 0x18], 0x220f1e01
mov dword [esp + 0x14], 0xe
jmp 0x1000b5af
mov ebp, dword [esp + 0x4c]
push 1
push ebp
push edi
push esi
call fcn.1000abb0
mov ebx, dword [esp + 0x40]
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x38]
push eax
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000b582
mov dword [esp + 0x18], 0x220f1f0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
jmp 0x1000b5a9
cmp ebp, dword [esp + 0x34]
je 0x1000b59a
mov dword [esp + 0x18], 0x220f1f0a
mov dword [esp + 0x14], 0
jmp 0x1000b5a9
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [esp + 0x20], 1
push esi
call fcn.1000aa00
push edi
call fcn.1000aa00
mov ebx, dword [esp + 0x40]
xor ebp, ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
cmp edi, ebp
jne 0x1000b5e3
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.1000e150
push edx
push eax
call fcn.1000e220
add esp, 0x10
push edi
push str.wsps_ld
push 0xa
push 0x1023e498
call fcn.1000f390
add esp, 0x10
jmp 0x1000b10e
push 0x57
push 0x220f1f01
call fcn.1000e150
push edx
push eax
call fcn.1000e220
add esp, 0x10
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 0x10