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

Disassembly:
push 0xffffffffffffffff
push 0x10107338
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101561c0]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov eax, dword [esp + 0xbc]
push eax
call fcn.1000fd30
mov ebx, dword [esp + 0xbc]
add esp, 4
push eax
push ebx
call fcn.1000fd30
mov esi, dword [esp + 0xbc]
add esp, 4
push eax
push esi
call fcn.1000fd30
mov edi, dword [esp + 0xbc]
add esp, 4
push eax
push edi
call fcn.1000fd30
add esp, 4
push eax
push str.wsps:__s____s____s____s_
push 0xa
push 0x10158458
call fcn.1000f760
xor ebp, ebp
add esp, 0x1c
cmp esi, ebp
je 0x1000b56d
cmp ebx, ebp
je 0x1000b56d
cmp dword [esp + 0xbc], ebp
je 0x1000b56d
push 1
lea ecx, [esp + 0x90]
mov dword [esp + 0x24], ebp
call fcn.1000e0c0
push 1
lea ecx, [esp + 0x68]
mov dword [esp + 0xac], ebp
call fcn.1000e0c0
push 1
lea ecx, [esp + 0x7c]
mov byte [esp + 0xac], 1
call fcn.1000e0c0
mov byte [esp + 0xa8], 2
cmp edi, ebp
je 0x1000b0d2
lea ecx, [esp + 0x38]
push ecx
push 0xffffffffffffffff
push edi
push ebp
lea ecx, [esp + 0x9c]
call fcn.1000e4e0
mov ebx, eax
mov dword [esp + 0x2c], ebx
cmp ebx, ebp
jne 0x1000b0d8
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
push eax
call fcn.1000e6d0
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.1000e230
lea ecx, [esp + 0x64]
mov byte [esp + 0xa8], 0
mov dword [esp + 0x64], esi
call fcn.1000e230
lea ecx, [esp + 0x8c]
mov dword [esp + 0xa8], 0xffffffff
mov dword [esp + 0x8c], esi
call fcn.1000e230
mov eax, edi
jmp 0x1000b583
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.1000e4e0
mov edi, eax
mov dword [esp + 0x28], edi
cmp edi, ebp
je 0x1000b06a
mov edx, dword [esp + 0xb8]
lea ecx, [esp + 0x38]
push ecx
push 0xffffffffffffffff
push edx
push ebp
lea ecx, [esp + 0x88]
call fcn.1000e4e0
mov dword [esp + 0x50], eax
cmp eax, ebp
jne 0x1000b184
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
call fcn.1000e6d0
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.1000e230
lea ecx, [esp + 0x64]
mov byte [esp + 0xa8], 0
mov dword [esp + 0x64], esi
call fcn.1000e230
lea ecx, [esp + 0x8c]
mov dword [esp + 0xa8], 0xffffffff
mov dword [esp + 0x8c], esi
call fcn.1000e230
mov eax, edi
jmp 0x1000b583
push closesocket
push eax
call fcn.1000f8a0
mov esi, eax
push closesocket
push edi
mov dword [esp + 0x54], esi
call fcn.1000f8a0
mov edi, eax
push closesocket
push ebx
mov dword [esp + 0x78], edi
call fcn.1000f8a0
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 0x1000b1fe
mov esi, 0x220f1f07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x20]
jmp 0x1000b542
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000b224
mov dword [esp + 0x18], 0x220f1f08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
jmp 0x1000b52b
lea ecx, [esp + 0x30]
lea eax, [esi + edi]
push ecx
push eax
mov dword [esp + 0x5c], eax
call fcn.1000a8f0
mov edi, eax
cmp edi, ebp
jne 0x1000b251
mov dword [esp + 0x18], 0x220f1e01
mov dword [esp + 0x14], 0xe
jmp 0x1000b52b
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 0x1000b375
lea edx, [esp + 0x30]
push edx
push esi
mov dword [esp + 0x28], ebx
call fcn.1000a8f0
mov dword [esp + 0x34], eax
test eax, eax
jne 0x1000b29a
mov dword [esp + 0x18], 0x220f1e01
mov dword [esp + 0x14], 0xe
jmp 0x1000b51f
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 0x1000b2cd
mov dword [esp + 0x18], 0x220f1f09
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
jmp 0x1000b360
cmp dword [esp + 0x58], esi
je 0x1000b2e5
mov dword [esp + 0x18], 0x220f1f09
mov dword [esp + 0x14], 0
jmp 0x1000b360
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.1000ab20
mov eax, dword [esp + 0xb0]
mov byte [edi + esi], 0
test eax, eax
je 0x1000b344
cmp word [eax], 0
je 0x1000b344
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x4c]
push eax
mov eax, edi
call fcn.1000a660
mov ebx, dword [esp + 0x50]
add esp, 8
mov dword [esp + 0x5c], eax
test eax, eax
je 0x1000b360
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push edx
jmp 0x1000b350
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
mov eax, edi
call fcn.1000a7c0
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
add esp, 8
mov edx, dword [esp + 0x34]
push edx
call fcn.1000a970
cmp dword [esp + 0x20], 0
je 0x1000b51f
push closesocket
push edi
mov dword [esp + 0x28], 0
call fcn.1000f8a0
add esp, 8
mov dword [esp + 0x30], eax
test ebp, ebp
je 0x1000b3d7
mov ebx, dword [esp + 0x24]
test ebx, ebx
jne 0x1000b3a1
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.10010380
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x64]
push ecx
push edx
push ebx
call fcn.10010aa0
add esp, 0x20
jmp 0x1000b482
cmp dword [esp + 0x5c], 0
jne 0x1000b3f6
mov ecx, dword [esp + 0xb0]
test ecx, ecx
je 0x1000b3f6
cmp word [ecx], 0
je 0x1000b3f6
mov ebp, 1
jmp 0x1000b3f8
xor ebp, ebp
test ebx, ebx
jne 0x1000b3ff
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 0x1000b41d
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.10010380
add esp, 0x14
test ebp, ebp
je 0x1000b45f
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.100093f0
add esp, 0x18
jmp 0x1000b47b
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.100093f0
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.1000a8f0
mov esi, eax
test esi, esi
jne 0x1000b4ab
mov dword [esp + 0x18], 0x220f1e01
mov dword [esp + 0x14], 0xe
jmp 0x1000b51f
mov ebp, dword [esp + 0x4c]
push 1
push ebp
push edi
push esi
call fcn.1000ab20
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 0x1000b4f2
mov dword [esp + 0x18], 0x220f1f0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
jmp 0x1000b519
cmp ebp, dword [esp + 0x34]
je 0x1000b50a
mov dword [esp + 0x18], 0x220f1f0a
mov dword [esp + 0x14], 0
jmp 0x1000b519
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [esp + 0x20], 1
push esi
call fcn.1000a970
push edi
call fcn.1000a970
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 0x1000b553
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.1000e600
push edx
push eax
call fcn.1000e6d0
add esp, 0x10
push edi
push str.wsps_ld
push 0xa
push 0x10158458
call fcn.1000f810
add esp, 0x10
jmp 0x1000b07e
push 0x57
push 0x220f1f01
call fcn.1000e600
push edx
push eax
call fcn.1000e6d0
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