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

Disassembly:
push 0xffffffffffffffff
push 0x101c4278
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1023d1bc]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov eax, dword [esp + 0xbc]
push eax
call fcn.1000fd80
mov ebx, dword [esp + 0xbc]
add esp, 4
push eax
push ebx
call fcn.1000fd80
mov esi, dword [esp + 0xbc]
add esp, 4
push eax
push esi
call fcn.1000fd80
mov edi, dword [esp + 0xbc]
add esp, 4
push eax
push edi
call fcn.1000fd80
add esp, 4
push eax
push str.wsps:__s____s____s____s_
push 0xa
push 0x1023e498
call fcn.1000f7a0
xor ebp, ebp
add esp, 0x1c
cmp esi, ebp
je 0x1000b5ad
cmp ebx, ebp
je 0x1000b5ad
cmp dword [esp + 0xbc], ebp
je 0x1000b5ad
push 1
lea ecx, [esp + 0x90]
mov dword [esp + 0x24], ebp
call fcn.1000e100
push 1
lea ecx, [esp + 0x68]
mov dword [esp + 0xac], ebp
call fcn.1000e100
push 1
lea ecx, [esp + 0x7c]
mov byte [esp + 0xac], 1
call fcn.1000e100
mov byte [esp + 0xa8], 2
cmp edi, ebp
je 0x1000b112
lea ecx, [esp + 0x38]
push ecx
push 0xffffffffffffffff
push edi
push ebp
lea ecx, [esp + 0x9c]
call fcn.1000e520
mov ebx, eax
mov dword [esp + 0x2c], ebx
cmp ebx, ebp
jne 0x1000b118
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
push eax
call fcn.1000e710
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.1000e270
lea ecx, [esp + 0x64]
mov byte [esp + 0xa8], 0
mov dword [esp + 0x64], esi
call fcn.1000e270
lea ecx, [esp + 0x8c]
mov dword [esp + 0xa8], 0xffffffff
mov dword [esp + 0x8c], esi
call fcn.1000e270
mov eax, edi
jmp 0x1000b5c3
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.1000e520
mov edi, eax
mov dword [esp + 0x28], edi
cmp edi, ebp
je 0x1000b0aa
mov edx, dword [esp + 0xb8]
lea ecx, [esp + 0x38]
push ecx
push 0xffffffffffffffff
push edx
push ebp
lea ecx, [esp + 0x88]
call fcn.1000e520
mov dword [esp + 0x50], eax
cmp eax, ebp
jne 0x1000b1c4
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
call fcn.1000e710
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.1000e270
lea ecx, [esp + 0x64]
mov byte [esp + 0xa8], 0
mov dword [esp + 0x64], esi
call fcn.1000e270
lea ecx, [esp + 0x8c]
mov dword [esp + 0xa8], 0xffffffff
mov dword [esp + 0x8c], esi
call fcn.1000e270
mov eax, edi
jmp 0x1000b5c3
push closesocket
push eax
call fcn.1000f8f0
mov esi, eax
push closesocket
push edi
mov dword [esp + 0x54], esi
call fcn.1000f8f0
mov edi, eax
push closesocket
push ebx
mov dword [esp + 0x78], edi
call fcn.1000f8f0
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 0x1000b23e
mov esi, 0x220f1f07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x20]
jmp 0x1000b582
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000b264
mov dword [esp + 0x18], 0x220f1f08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
jmp 0x1000b56b
lea ecx, [esp + 0x30]
lea eax, [esi + edi]
push ecx
push eax
mov dword [esp + 0x5c], eax
call fcn.1000a930
mov edi, eax
cmp edi, ebp
jne 0x1000b291
mov dword [esp + 0x18], 0x220f1e01
mov dword [esp + 0x14], 0xe
jmp 0x1000b56b
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 0x1000b3b5
lea edx, [esp + 0x30]
push edx
push esi
mov dword [esp + 0x28], ebx
call fcn.1000a930
mov dword [esp + 0x34], eax
test eax, eax
jne 0x1000b2da
mov dword [esp + 0x18], 0x220f1e01
mov dword [esp + 0x14], 0xe
jmp 0x1000b55f
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 0x1000b30d
mov dword [esp + 0x18], 0x220f1f09
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
jmp 0x1000b3a0
cmp dword [esp + 0x58], esi
je 0x1000b325
mov dword [esp + 0x18], 0x220f1f09
mov dword [esp + 0x14], 0
jmp 0x1000b3a0
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.1000ab60
mov eax, dword [esp + 0xb0]
mov byte [edi + esi], 0
test eax, eax
je 0x1000b384
cmp word [eax], 0
je 0x1000b384
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x4c]
push eax
mov eax, edi
call fcn.1000a6a0
mov ebx, dword [esp + 0x50]
add esp, 8
mov dword [esp + 0x5c], eax
test eax, eax
je 0x1000b3a0
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push edx
jmp 0x1000b390
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
mov eax, edi
call fcn.1000a800
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
add esp, 8
mov edx, dword [esp + 0x34]
push edx
call fcn.1000a9b0
cmp dword [esp + 0x20], 0
je 0x1000b55f
push closesocket
push edi
mov dword [esp + 0x28], 0
call fcn.1000f8f0
add esp, 8
mov dword [esp + 0x30], eax
test ebp, ebp
je 0x1000b417
mov ebx, dword [esp + 0x24]
test ebx, ebx
jne 0x1000b3e1
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.100103f0
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 0x1000b4c2
cmp dword [esp + 0x5c], 0
jne 0x1000b436
mov ecx, dword [esp + 0xb0]
test ecx, ecx
je 0x1000b436
cmp word [ecx], 0
je 0x1000b436
mov ebp, 1
jmp 0x1000b438
xor ebp, ebp
test ebx, ebx
jne 0x1000b43f
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 0x1000b45d
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.100103f0
add esp, 0x14
test ebp, ebp
je 0x1000b49f
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.10009420
add esp, 0x18
jmp 0x1000b4bb
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.10009420
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.1000a930
mov esi, eax
test esi, esi
jne 0x1000b4eb
mov dword [esp + 0x18], 0x220f1e01
mov dword [esp + 0x14], 0xe
jmp 0x1000b55f
mov ebp, dword [esp + 0x4c]
push 1
push ebp
push edi
push esi
call fcn.1000ab60
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 0x1000b532
mov dword [esp + 0x18], 0x220f1f0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
jmp 0x1000b559
cmp ebp, dword [esp + 0x34]
je 0x1000b54a
mov dword [esp + 0x18], 0x220f1f0a
mov dword [esp + 0x14], 0
jmp 0x1000b559
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [esp + 0x20], 1
push esi
call fcn.1000a9b0
push edi
call fcn.1000a9b0
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 0x1000b593
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.1000e640
push edx
push eax
call fcn.1000e710
add esp, 0x10
push edi
push str.wsps_ld
push 0xa
push 0x1023e498
call fcn.1000f850
add esp, 0x10
jmp 0x1000b0be
push 0x57
push 0x220f1f01
call fcn.1000e640
push edx
push eax
call fcn.1000e710
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