Function at 0x101bce40
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10241de8
mov eax, dword fs:[0]
push eax
sub esp, 0x4cc
mov eax, dword [0x102e91c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x4bc], esi
xor eax, eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x470]
push 1
push 0x10263a50
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x45c], eax
call fcn.1000aef0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x470]
cmp dword [ebp - 0x45c], 8
lea edi, [esi + 0x4c]
cmovae edx, dword [ebp - 0x470]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101bcee3
sub ecx, esi
mov eax, edi
sar ecx, 1
cmp dword [edi + 0x14], 8
jb 0x101bcefc
mov eax, dword [edi]
mov esi, dword [edi + 0x10]
push ecx
push edx
push ecx
mov edx, esi
mov ecx, eax
call fcn.100b3610
add esp, 0xc
mov dword [ebp - 0x428], 0
cmp esi, eax
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0
mov ecx, edi
cmovb eax, esi
cmp dword [edi + 0x14], 8
jb 0x101bcf3b
mov ecx, dword [edi]
push eax
push ecx
lea ecx, [ebp - 0x428]
call fcn.1000aef0
lea ecx, [ebp - 0x440]
call fcn.1000ae90
movups xmm0, xmmword [ebp - 0x428]
xor eax, eax
lea ecx, [ebp - 0x428]
mov word [ebp - 0x428], ax
movups xmmword [ebp - 0x440], xmm0
movq xmm0, qword [ebp - 0x418]
movq qword [ebp - 0x430], xmm0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 7
call fcn.1000ae90
mov edx, dword [ebp - 0x430]
mov eax, SysReAllocString
mov esi, dword [ebp - 0x460]
sub eax, edx
cmp eax, esi
jb 0x101bd4c7
cmp dword [ebp - 0x42c], 8
lea ecx, [ebp - 0x440]
push esi
cmovae ecx, dword [ebp - 0x440]
lea eax, [ebp - 0x470]
cmp dword [ebp - 0x45c], 8
cmovae eax, dword [ebp - 0x470]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x4b4]
lea ecx, [ebp - 0x4d8]
call fcn.10011120
push str.asu.trace
lea edx, [ebp - 0x4d8]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x490]
call fcn.10018a00
mov esi, eax
add esp, 4
lea eax, [ebp - 0x440]
cmp eax, esi
je 0x101bd04c
mov ecx, eax
call fcn.1000ae90
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x440], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x430], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x490]
call fcn.1000ae90
lea ecx, [ebp - 0x4d8]
mov byte [ebp - 4], 1
call fcn.1000ae90
mov eax, dword [ebp - 0x4bc]
mov eax, dword [eax + 0x64]
cmp eax, 0xa
je 0x101bd091
cmp eax, 0x14
je 0x101bd085
mov dword [ebp - 0x4b8], 0xa00000
jmp 0x101bd09b
mov dword [ebp - 0x4b8], 0x1400000
jmp 0x101bd09b
mov dword [ebp - 0x4b8], 0x3200000
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.101d28f0
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
push str.rb__ccsUTF_8
cmovae eax, dword [ebp - 0x440]
push eax
lea eax, [ebp - 0x4ac]
mov dword [ebp - 0x4ac], 0
push eax
call fcn.101eb336
mov eax, dword [ebp - 0x4ac]
add esp, 0x18
test eax, eax
je 0x101bd10a
push eax
push 9
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.101ead90
push dword [ebp - 0x4ac]
call fcn.101ea32d
add esp, 0x14
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x101bd114
mov eax, dword [edi]
push 0
push 0x80
push 3
push 0
push 3
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x4c0], esi
cmp esi, 0xffffffff
je 0x101bd487
lea eax, [ebp - 0x478]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x101bd480
mov eax, dword [ebp - 0x478]
push dword [ebp - 0x4c0]
mov esi, dword [ebp - 0x474]
mov dword [ebp - 0x4b4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x4ad], 1
test esi, esi
jl 0x101bd48e
jg 0x101bd195
mov eax, dword [ebp - 0x4b4]
cmp eax, dword [ebp - 0x4b8]
jb 0x101bd48e
mov esi, dword [ebp - 0x4bc]
mov eax, dword [esi + 0x68]
mov byte [esi + 0xd0], 1
test eax, eax
je 0x101bd1b0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea ecx, [ebp - 0x4a8]
call fcn.1000fe90
lea eax, [ebp - 0x4a8]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x458]
call fcn.1000fe90
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 4
call fcn.101bca00
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 5
call fcn.101bc860
mov ecx, dword [ebp - 0x418]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x101bd4cc
cmp dword [ebp - 0x414], 8
lea eax, [ebp - 0x428]
push ecx
cmovae eax, dword [ebp - 0x428]
push eax
push 1
push 0x102681cc
push ecx
push dword [ebp - 0x4b4]
lea ecx, [ebp - 0x4d8]
call fcn.10011120
mov byte [ebp - 4], 6
lea eax, [ebp - 0x4d8]
cmp dword [ebp - 0x4c4], 8
lea ecx, [ebp - 0x458]
push dword [ebp - 0x4c8]
cmovae eax, dword [ebp - 0x4d8]
push eax
call fcn.10010650
lea ecx, [ebp - 0x4d8]
call fcn.1000ae90
xor eax, eax
mov dword [ebp - 0x490], 0
mov dword [ebp - 0x480], 0
mov dword [ebp - 0x47c], 7
mov word [ebp - 0x490], ax
lea edx, [ebp - 0x490]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4a8]
call fcn.101bcc50
lea edx, [ebp - 0x490]
lea ecx, [ebp - 0x458]
call fcn.101bca80
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
push dword [ebp - 0x448]
cmovae eax, dword [ebp - 0x458]
lea ecx, [ebp - 0x4a8]
push eax
call fcn.10010360
lea ecx, [ebp - 0x490]
call fcn.1000ae90
lea ecx, [ebp - 0x428]
call fcn.1000ae90
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 3
call fcn.1000ae90
push ecx
lea edx, [ebp - 0x4a8]
mov ecx, edi
call fcn.101bcd00
add esp, 4
test al, al
je 0x101bd39e
push 1
mov ecx, edi
call fcn.10177820
add esp, 4
test eax, eax
je 0x101bd364
cmp eax, 1
jne 0x101bd39e
push ecx
mov dl, al
mov ecx, edi
call fcn.1014f950
add esp, 4
test al, al
je 0x101bd39e
cmp dword [edi + 0x14], 8
jb 0x101bd36c
mov edi, dword [edi]
push 0
push 0x200080
push 5
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x68], eax
lea edi, [esi + 0x68]
test eax, eax
je 0x101bd3a1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
jmp 0x101bd3a1
lea edi, [esi + 0x68]
mov eax, dword [esi]
push edi
mov esi, dword [eax]
mov ecx, esi
call dword [0x1024852c]
mov edi, dword [ebp - 0x4bc]
mov ecx, edi
call esi
push 8
push str.keeplogs
lea ecx, [ebp - 0x458]
mov byte [ebp - 0x4ad], al
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0
call fcn.10010c60
mov byte [ebp - 4], 8
lea eax, [ebp - 0x458]
cmp dword [ebp - 0x444], 0x10
lea ecx, [ebp - 0x410]
mov esi, dword [ebp - 0x458]
cmovae eax, esi
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x101bd430
test dl, dl
je 0x101bd42c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x101bd430
add ecx, 2
add eax, 2
test dl, dl
jne 0x101bd410
xor eax, eax
jmp 0x101bd435
sbb eax, eax
or eax, 1
test eax, eax
je 0x101bd441
push ecx
mov ecx, edi
call fcn.101b6a00
mov eax, dword [ebp - 0x444]
cmp eax, 0x10
jb 0x101bd473
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x101bd469
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101bd4d1
push ecx
push esi
call fcn.101d02bd
add esp, 8
lea ecx, [ebp - 0x4a8]
call fcn.1000ae90
jmp 0x101bd48e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x4ad], 0
lea ecx, [ebp - 0x470]
call fcn.1000ae90
lea ecx, [ebp - 0x440]
call fcn.1000ae90
mov al, byte [ebp - 0x4ad]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret 4
call fcn.1000a360
call fcn.1000a360
call fcn.101dc0ba
int3