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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101961d7
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x490], edi
xor eax, eax
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 7
mov word [ebp - 0x448], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x460]
push 1
push 0x101ace08
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x44c], 7
mov word [ebp - 0x460], ax
call fcn.10001d60
mov byte [ebp - 4], 1
lea edx, [ebp - 0x460]
cmp dword [ebp - 0x44c], 8
lea esi, [edi + 0x4c]
cmovae edx, dword [ebp - 0x460]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x484], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10126ca4
sub ecx, dword [ebp - 0x484]
mov eax, esi
sar ecx, 1
cmp dword [esi + 0x14], 8
jb 0x10126cc1
mov eax, dword [esi]
push dword [ebp - 0x494]
push ecx
push edx
mov edx, dword [esi + 0x10]
push ecx
mov ecx, eax
call fcn.10120cb0
xor ecx, ecx
mov dword [ebp - 0x420], 0
add esp, 0x10
mov word [ebp - 0x430], cx
cmp dword [esi + 0x10], eax
mov ecx, esi
mov dword [ebp - 0x41c], 7
cmovb eax, dword [esi + 0x10]
cmp dword [esi + 0x14], 8
jb 0x10126d05
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [ebp - 0x430]
call fcn.10001d60
lea ecx, [ebp - 0x448]
call fcn.10001d00
movups xmm0, xmmword [ebp - 0x430]
lea eax, [ebp - 0x460]
push eax
movups xmmword [ebp - 0x448], xmm0
lea edx, [ebp - 0x448]
movq xmm0, qword [ebp - 0x420]
lea ecx, [ebp - 0x478]
movq qword [ebp - 0x438], xmm0
call fcn.1001ea20
add esp, 4
push 9
push str.asu.trace
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.10001e70
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x428], xmm0
movq xmm0, qword [eax + 0x10]
mov word [eax], cx
lea ecx, [ebp - 0x448]
movq qword [ebp - 0x418], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.10001d00
movups xmm0, xmmword [ebp - 0x428]
movups xmmword [ebp - 0x448], xmm0
movq xmm0, qword [ebp - 0x418]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x464]
movq qword [ebp - 0x438], xmm0
cmp edx, 8
jb 0x10126dff
mov ecx, dword [ebp - 0x478]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10126df5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012718a
push edx
push ecx
call fcn.1015cbd5
add esp, 8
mov eax, dword [edi + 0x64]
cmp eax, 0xa
je 0x10126e24
cmp eax, 0x14
je 0x10126e18
mov dword [ebp - 0x488], 0xa00000
jmp 0x10126e2e
mov dword [ebp - 0x488], 0x1400000
jmp 0x10126e2e
mov dword [ebp - 0x488], 0x3200000
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.10160450
cmp dword [ebp - 0x434], 8
lea eax, [ebp - 0x448]
push 0x101dd894
cmovae eax, dword [ebp - 0x448]
push eax
lea eax, [ebp - 0x47c]
mov dword [ebp - 0x47c], 0
push eax
call fcn.1016dae0
mov eax, dword [ebp - 0x47c]
add esp, 0x18
test eax, eax
je 0x10126e9d
push eax
push 9
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.1016e46c
push dword [ebp - 0x47c]
call fcn.1016d8ef
add esp, 0x14
cmp dword [esi + 0x14], 8
mov eax, esi
mov byte [ebp - 0x47d], 0
jb 0x10126eae
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x494], eax
cmp eax, 0xffffffff
jne 0x10126ede
mov byte [ebp - 0x47d], 0
jmp 0x101270ef
lea ecx, [ebp - 0x418]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10126f11
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x484], eax
mov eax, dword [ebp - 0x414]
mov dword [ebp - 0x48c], eax
mov byte [ebp - 0x47d], 1
jmp 0x10126f29
mov eax, dword [ebp - 0x414]
mov dword [ebp - 0x48c], eax
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x484], eax
push dword [ebp - 0x494]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x47d], 0
je 0x101270ef
cmp dword [ebp - 0x48c], 0
jl 0x101270ef
jg 0x10126f63
mov eax, dword [ebp - 0x484]
cmp eax, dword [ebp - 0x488]
jb 0x101270ef
mov eax, dword [edi + 0x68]
mov byte [edi + 0xd0], 1
add edi, 0x68
test eax, eax
je 0x10126f7b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
lea ecx, [ebp - 0x478]
call fcn.10002700
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 3
call fcn.1012c1e0
push ecx
lea edx, [ebp - 0x478]
mov ecx, esi
call fcn.10126ac0
add esp, 4
test al, al
je 0x10127005
push ecx
mov ecx, esi
call fcn.1010a400
add esp, 4
test eax, eax
je 0x10126fd1
cmp eax, 2
je 0x10127005
push 0
mov dl, 1
mov ecx, esi
call fcn.100ffab0
add esp, 4
test al, al
je 0x10127005
cmp dword [esi + 0x14], 8
jb 0x10126fd9
mov esi, dword [esi]
push 0
push 0x200080
push 5
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
test eax, eax
je 0x10127005
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
mov eax, dword [ebp - 0x490]
push edi
mov eax, dword [eax]
mov esi, dword [eax]
mov ecx, esi
call dword [0x1019a4f8]
mov edi, dword [ebp - 0x490]
mov ecx, edi
call esi
push 8
push str.keeplogs
lea ecx, [ebp - 0x430]
mov byte [ebp - 0x47d], al
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0xf
mov byte [ebp - 0x430], 0
call fcn.10018930
mov byte [ebp - 4], 4
lea eax, [ebp - 0x430]
cmp dword [ebp - 0x41c], 0x10
lea ecx, [ebp - 0x410]
cmovae eax, dword [ebp - 0x430]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10127093
test dl, dl
je 0x1012708f
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10127093
add ecx, 2
add eax, 2
test dl, dl
jne 0x10127073
xor eax, eax
jmp 0x10127098
sbb eax, eax
or eax, 1
test eax, eax
je 0x101270a4
push ecx
mov ecx, edi
call fcn.1011f470
lea ecx, [ebp - 0x430]
call fcn.1000ad20
mov edx, dword [ebp - 0x464]
cmp edx, 8
jb 0x101270ef
mov ecx, dword [ebp - 0x478]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x101270e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012718f
push edx
push ecx
call fcn.1015cbd5
add esp, 8
mov edx, dword [ebp - 0x44c]
cmp edx, 8
jb 0x1012712b
mov ecx, dword [ebp - 0x460]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10127121
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10127194
push edx
push ecx
call fcn.1015cbd5
add esp, 8
mov edx, dword [ebp - 0x434]
cmp edx, 8
jb 0x10127167
mov ecx, dword [ebp - 0x448]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1012715d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10127194
push edx
push ecx
call fcn.1015cbd5
add esp, 8
mov al, byte [ebp - 0x47d]
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.1015c875
mov esp, ebp
pop ebp
ret 4
call fcn.101686f5
call fcn.101686f5
call fcn.101686f5
int3