Function at 0x100afd10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023c741
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x102c6474]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push ecx
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xd4], eax
call fcn.100b1850
mov eax, dword [ebx]
push 0x80
mov dword [ebx + 4], eax
mov ebx, dword [ebp - 0xd4]
push 3
push ecx
push 0
mov ecx, edi
mov byte [ebx], 0
call fcn.10007f54
mov edx, accept
mov ecx, eax
call fcn.10076840
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
je 0x100aff06
test esi, esi
je 0x100aff06
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x30]
movq qword [ebp - 0x30], xmm0
call fcn.10007f18
mov dword [ebp - 4], 0
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0xf4]
movlpd qword [ebp - 0x104], xmm0
push eax
lea eax, [ebp - 0x104]
movlpd qword [ebp - 0xf4], xmm0
push eax
push edi
movlpd qword [ebp - 0x11c], xmm0
call fcn.100b0bc0
test al, al
je 0x100afe8b
mov edi, dword [ebp - 0x104]
mov ecx, edi
mov ebx, dword [ebp - 0x100]
add ecx, 0xffffffff
mov eax, ebx
adc eax, 0xffffffff
test eax, eax
ja 0x100afe85
jb 0x100afe29
cmp ecx, 0x4ffffe
ja 0x100afe85
lea eax, [ebp - 0xc5]
mov byte [ebp - 0xc5], 0
push eax
push edi
lea ecx, [ebp - 0x30]
call fcn.10028f40
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], 0
call fcn.10005e30
push 0
lea ecx, [ebp - 0x24]
push ecx
mov eax, dword [eax]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x24]
xor ecx, ecx
cmp ecx, ebx
ja 0x100afe85
jb 0x100afe6f
cmp eax, edi
jae 0x100afe85
mov byte [ebp - 0xc5], cl
lea ecx, [ebp - 0xc5]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.10028f40
mov ebx, dword [ebp - 0xd4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x30]
call fcn.1000fc62
test al, al
jne 0x100afef7
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x3c]
movq qword [ebp - 0x3c], xmm0
call fcn.10007f18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc4]
call fcn.101d85a0
lea ecx, [ebp - 0x30]
call fcn.10005e30
mov edx, dword [eax]
lea eax, [ebp - 0x3c]
push eax
call fcn.1000fc6b
push eax
push edx
lea ecx, [ebp - 0xc4]
call fcn.10037de0
test al, al
jne 0x100aff26
mov byte [ebx], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.1000fc71
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.1000fc71
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101e48f0
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x3c]
call fcn.1000fc6b
xor edx, edx
mov ecx, 0x3e8
div ecx
test edx, edx
jne 0x100afee8
lea ecx, [ebp - 0x3c]
call fcn.1000fc6b
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov ebx, edx
shr ebx, 6
test ebx, ebx
je 0x100b0836
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x20]
push eax
push ebx
mov ecx, eax
call fcn.100b1280
lea ecx, [ebp - 0x3c]
call fcn.10005e30
mov ecx, dword [eax]
imul eax, ebx, 0x3e8
push eax
push ecx
push dword [ebp - 0x20]
call fcn.101fc3e0
mov edi, dword [ebp - 0x20]
xor ecx, ecx
mov dword [ebp - 0xd8], ecx
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
sub ecx, edi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100b0024
xor esi, esi
nop
cmp dword [edi + esi], 0x23ab45db
jne 0x100b007f
inc dword [ebp - 0xd8]
xor eax, eax
mov word [edi + esi + 0x282], ax
mov word [edi + esi + 0x382], ax
mov word [edi + esi + 0x3ca], ax
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x1c]
add esi, 0x3e8
mov edi, dword [ebp - 0x20]
sub ecx, edi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0xd8], eax
jb 0x100affd0
mov esi, dword [ebp - 0xf8]
mov eax, 0x4ec4ec4f
mov ecx, dword [esi + 8]
sub ecx, dword [esi]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jbe 0x100b00fd
mov dword [ebp - 0xe0], 0x2762762
call fcn.10005b8c
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.10005f5c
add esp, 8
mov eax, dword [eax]
cmp ebx, eax
ja 0x100b0858
jmp 0x100b00f5
mov eax, dword [ebp - 0xd4]
mov byte [eax], 1
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x100afeeb
mov ecx, dword [ebp - 0x18]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x100b00d1
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b085d
push ecx
push esi
call fcn.101e4d70
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
jmp 0x100afeeb
push ebx
mov ecx, esi
call fcn.100b1050
lea ecx, [ebp - 0xa4]
call fcn.100ad730
mov byte [ebp - 4], 3
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
sub ecx, esi
imul ecx
mov dword [ebp - 0xdc], 0
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100b07a3
lea ecx, [ebp - 0xa4]
call fcn.10005e30
xor ebx, ebx
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xe0], ebx
nop
lea eax, [esi + ebx]
mov dword [ebp - 0xcc], eax
add eax, 4
push eax
call fcn.10005f42
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0xd8]
mov ebx, dword [eax + 0x14]
cmp edi, ebx
ja 0x100b01b6
mov esi, eax
cmp ebx, 8
jb 0x100b017d
mov esi, dword [eax]
mov dword [eax + 0x10], edi
mov eax, dword [ebp - 0xcc]
push edi
add eax, 4
push eax
push esi
call fcn.10005f10
add esp, 0xc
mov dword [ebp - 0xd0], 0
lea eax, [ebp - 0xd0]
push eax
lea eax, [esi + edi*2]
push eax
call fcn.10005eff
add esp, 8
jmp 0x100b032b
lea ecx, [ebp - 0xa4]
call fcn.1000608d
cmp edi, eax
ja 0x100b0867
lea ecx, [ebp - 0xa4]
call fcn.1000608d
lea ecx, [ebp - 0xa4]
mov esi, eax
call fcn.10005e30
mov ecx, edi
or ecx, 7
mov dword [ebp - 0x10c], ecx
cmp ecx, esi
ja 0x100b0220
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x100b0220
lea eax, [ecx + edx]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.10005ed6
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x100b0232
or ecx, 0xffffffff
jmp 0x100b023a
cmp ecx, 0x1000
jb 0x100b0265
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.101e4da1
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x100b085d
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x100b0276
test ecx, ecx
je 0x100b0274
push ecx
call fcn.101e4da1
add esp, 4
jmp 0x100b0276
xor eax, eax
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xd8]
push edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], esi
mov eax, dword [ebp - 0xcc]
mov esi, dword [ebp - 0xe4]
add eax, 4
push eax
push esi
call fcn.10005f29
add esp, 0xc
mov dword [ebp - 0xd0], 0
lea eax, [ebp - 0xd0]
push eax
lea eax, [esi + edi*2]
push eax
call fcn.10005eff
mov edi, dword [ebp - 0xd8]
add esp, 8
cmp ebx, 8
jb 0x100b0305
mov eax, dword [edi]
lea ecx, [ebx*2 + 2]
cmp ecx, 0x1000
jb 0x100b02f1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b085d
mov eax, edx
push ecx
push eax
call fcn.101e4d70
mov eax, dword [ebp - 0xe4]
add esp, 8
mov dword [edi], eax
jmp 0x100b032b
push edi
call fcn.10005f6e
add esp, 4
push eax
push 4
call fcn.10005b84
mov esi, eax
lea eax, [ebp - 0xe4]
push eax
call fcn.10005f6e
add esp, 0xc
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [ebp - 0xcc]
add eax, 0x284
push eax
call fcn.10005f42
add esp, 4
lea ecx, [ebp - 0x8c]
mov ebx, eax
call fcn.10005e30
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0xf0], eax
cmp ebx, eax
ja 0x100b039f
mov esi, edi
cmp eax, 8
jb 0x100b0364
mov esi, dword [edi]
mov eax, dword [ebp - 0xcc]
push ebx
add eax, 0x284
mov dword [edi + 0x10], ebx
push eax
push esi
call fcn.10005f10
add esp, 0xc
mov dword [ebp - 0xd0], 0
lea eax, [ebp - 0xd0]
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10005eff
add esp, 8
jmp 0x100b0510
lea ecx, [ebp - 0x8c]
call fcn.1000608d
cmp ebx, eax
ja 0x100b0867
lea ecx, [ebp - 0x8c]
call fcn.1000608d
lea ecx, [ebp - 0x8c]
mov esi, eax
call fcn.10005e30
mov ecx, ebx
or ecx, 7
mov dword [ebp - 0x114], ecx
cmp ecx, esi
ja 0x100b0409
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x100b0409
lea eax, [ecx + edx]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.10005ed6
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x100b041b
or ecx, 0xffffffff
jmp 0x100b0423
cmp ecx, 0x1000
jb 0x100b044e
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.101e4da1
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x100b085d
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x100b045f
test ecx, ecx
je 0x100b045d
push ecx
call fcn.101e4da1
add esp, 4
jmp 0x100b045f
xor eax, eax
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xcc]
push ebx
add eax, 0x284
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [ebp - 0xe8]
push eax
push esi
call fcn.10005f29
add esp, 0xc
mov dword [ebp - 0xd0], 0
lea eax, [ebp - 0xd0]
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10005eff
mov ecx, dword [ebp - 0xf0]
add esp, 8
cmp ecx, 8
jb 0x100b04ea
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x100b04d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b085d
mov eax, edx
push ecx
push eax
call fcn.101e4d70
mov eax, dword [ebp - 0xe8]
add esp, 8
mov dword [edi], eax
jmp 0x100b0510
push edi
call fcn.10005f6e
add esp, 4
push eax
push 4
call fcn.10005b84
mov esi, eax
lea eax, [ebp - 0xe8]
push eax
call fcn.10005f6e
add esp, 0xc
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [ebp - 0xcc]
mov eax, dword [ecx + 0x3cc]
mov dword [ebp - 0x5c], eax
mov eax, dword [ecx + 0x3d0]
mov dword [ebp - 0x58], eax
mov eax, dword [ecx + 0x3d4]
mov dword [ebp - 0x54], eax
mov eax, dword [ecx + 0x3d8]
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + 0x3dc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx + 0x3e0]
mov dword [ebp - 0x48], eax
lea eax, [ecx + 0x384]
push eax
call fcn.10005f42
add esp, 4
lea ecx, [ebp - 0x74]
mov ebx, eax
call fcn.10005e30
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0xd0], eax
cmp ebx, eax
ja 0x100b05b8
mov esi, edi
cmp eax, 8
jb 0x100b057d
mov esi, dword [edi]
mov eax, dword [ebp - 0xcc]
push ebx
add eax, 0x384
mov dword [edi + 0x10], ebx
push eax
push esi
call fcn.10005f10
add esp, 0xc
mov dword [ebp - 0xf0], 0
lea eax, [ebp - 0xf0]
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10005eff
add esp, 8
jmp 0x100b0714
lea ecx, [ebp - 0x74]
call fcn.1000608d
cmp ebx, eax
ja 0x100b0867
lea ecx, [ebp - 0x74]
call fcn.1000608d
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.10005e30
mov ecx, ebx
or ecx, 7
mov dword [ebp - 0x100], ecx
cmp ecx, esi
ja 0x100b0619
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x100b0619
lea eax, [ecx + edx]
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.10005ed6
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x100b062b
or ecx, 0xffffffff
jmp 0x100b0633
cmp ecx, 0x1000
jb 0x100b065e
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.101e4da1
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x100b085d
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x100b066f
test ecx, ecx
je 0x100b066d
push ecx
call fcn.101e4da1
add esp, 4
jmp 0x100b066f
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xcc]
push ebx
add eax, 0x384
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [ebp - 0x24]
push eax
push esi
call fcn.10005f29
add esp, 0xc
mov dword [ebp - 0xf0], 0
lea eax, [ebp - 0xf0]
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10005eff
mov ecx, dword [ebp - 0xd0]
add esp, 8
cmp ecx, 8
jb 0x100b06f1
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x100b06e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b085d
mov eax, edx
push ecx
push eax
call fcn.101e4d70
mov eax, dword [ebp - 0x24]
add esp, 8
mov dword [edi], eax
jmp 0x100b0714
push edi
call fcn.10005f6e
add esp, 4
push eax
push 4
call fcn.10005b84
mov esi, eax
lea eax, [ebp - 0x24]
push eax
call fcn.10005f6e
add esp, 0xc
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [ebp - 0xcc]
mov ebx, dword [ebp - 0xf8]
mov eax, dword [eax + 0x3e4]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 4]
mov byte [ebp - 0x40], 0
cmp dword [ebx + 8], eax
je 0x100b0754
push eax
push 0x68
call fcn.10005b84
add esp, 8
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, eax
call fcn.100ae770
add dword [ebx + 4], 0x68
jmp 0x100b0763
lea ecx, [ebp - 0xa4]
push ecx
push eax
mov ecx, ebx
call fcn.100b1650
mov ecx, dword [ebp - 0x1c]
mov eax, 0x10624dd3
mov esi, dword [ebp - 0x20]
sub ecx, esi
mov edi, dword [ebp - 0xdc]
mov ebx, dword [ebp - 0xe0]
inc edi
imul ecx
add ebx, 0x3e8
mov dword [ebp - 0xdc], edi
sar edx, 6
mov eax, edx
mov dword [ebp - 0xe0], ebx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x100b0150
mov eax, dword [ebp - 0xd4]
mov byte [eax], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x74]
call fcn.10005e05
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c]
call fcn.10005e05
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa4]
call fcn.10005e05
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x100b0836
mov ecx, dword [ebp - 0x18]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x100b0817
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b0862
push ecx
push esi
call fcn.101e4d70
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.1000fc71
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.1000fc71
mov al, 1
jmp 0x100aff08
call fcn.100084d0
call fcn.10205f6e
call fcn.10205f6e
call fcn.1000604b
int3