Function at 0x1001ef70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10056e43
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x10076098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xd4], eax
mov edi, dword [eax + 4]
mov esi, dword [eax]
mov dword [ebp - 0xc8], ecx
cmp esi, edi
je 0x1001efdc
nop dword [eax]
mov ecx, esi
call fcn.10012010
add esi, 0x68
cmp esi, edi
jne 0x1001efc0
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xc8]
mov esi, dword [eax]
mov dword [eax + 4], esi
mov byte [ecx], 0
mov ecx, ebx
cmp dword [ebx + 0x14], 8
jb 0x1001efec
mov ecx, dword [ebx]
push ecx
push 0x80
push 3
push ecx
push 0
mov edx, SysReAllocString
call fcn.10010e60
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
je 0x1001f161
test esi, esi
je 0x1001f161
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
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 dword [ebp - 4], 0
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xe4]
movlpd qword [ebp - 0xd0], xmm0
push eax
lea eax, [ebp - 0xd0]
movlpd qword [ebp - 0xe4], xmm0
push eax
push ebx
movlpd qword [ebp - 0xdc], xmm0
call fcn.10020000
test al, al
je 0x1001f102
mov edi, dword [ebp - 0xd0]
mov ecx, edi
mov ebx, dword [ebp - 0xcc]
add ecx, 0xffffffff
mov eax, ebx
adc eax, 0xffffffff
test eax, eax
ja 0x1001f102
jb 0x1001f0aa
cmp ecx, 0x4ffffe
ja 0x1001f102
lea eax, [ebp - 0xc1]
mov byte [ebp - 0xc1], 0
push eax
lea ecx, [ebp - 0x20]
push ecx
push edi
call fcn.1000ceb0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push edi
push dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp ecx, ebx
ja 0x1001f102
jb 0x1001f0e9
cmp eax, edi
jae 0x1001f102
mov byte [ebp - 0xc1], cl
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0xc1]
push ecx
push edx
push eax
mov ecx, edx
call fcn.1000ceb0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x1c]
jne 0x1001f181
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x1001f161
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1001f142
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001fa1b
push edx
push ecx
call fcn.100325d8
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
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 - 0x10]
xor ecx, ebp
call fcn.100325c7
mov esp, ebp
pop ebp
ret 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc0]
call fcn.10022ea0
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x20]
sub ecx, eax
push edx
push ecx
push eax
lea ecx, [ebp - 0xc0]
call fcn.10023170
test al, al
jne 0x1001f230
mov eax, dword [ebp - 0xc8]
mov byte [eax], 1
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x1001f111
mov edx, dword [ebp - 0x30]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1001f20c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001fa20
push edx
push ecx
call fcn.100325d8
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
jmp 0x1001f111
mov eax, dword [ebp - 0x34]
xor edx, edx
mov esi, dword [ebp - 0x38]
mov ecx, 0x3e8
sub eax, esi
div ecx
mov edi, eax
mov dword [ebp - 0xd8], edi
test edx, edx
je 0x1001f289
mov eax, dword [ebp - 0xc8]
mov byte [eax], 1
mov byte [ebp - 4], 0
test esi, esi
je 0x1001f111
mov ecx, dword [ebp - 0x30]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x1001f285
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001fa1b
push ecx
push esi
jmp 0x1001f20e
test edi, edi
jne 0x1001f332
mov byte [ebp - 4], 0
test esi, esi
je 0x1001f2db
mov ecx, dword [ebp - 0x30]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x1001f2bc
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001fa1b
push ecx
push esi
call fcn.100325d8
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x1001f32b
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1001f30c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001fa1b
push edx
push ecx
call fcn.100325d8
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov al, 1
jmp 0x1001f163
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
push edi
mov ecx, eax
call fcn.100207c0
imul eax, edi, 0x3e8
push eax
push esi
push dword [ebp - 0x2c]
call fcn.10033c30
mov ebx, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x28]
add esp, 0xc
sub ecx, ebx
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1001f3f0
xor edi, edi
nop dword [eax + eax]
cmp dword [ebx + edi], 0x23ab45db
jne 0x1001f422
inc dword [ebp - 0x14]
xor eax, eax
mov word [ebx + edi + 0x282], ax
mov word [ebx + edi + 0x382], ax
mov word [ebx + edi + 0x3ca], ax
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x28]
add edi, 0x3e8
mov ebx, dword [ebp - 0x2c]
sub ecx, ebx
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x14], eax
jb 0x1001f3a0
mov edi, dword [ebp - 0xd8]
mov esi, dword [ebp - 0xd4]
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 edi, eax
jbe 0x1001f4a0
cmp edi, 0x2762762
ja 0x1001fa25
jmp 0x1001f498
mov eax, dword [ebp - 0xc8]
mov byte [eax], 1
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x1001f256
mov ecx, dword [ebp - 0x24]
mov eax, 0x10624dd3
sub ecx, edi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, edi
cmp ecx, 0x1000
jb 0x1001f474
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001fa1b
push ecx
push edi
call fcn.100325d8
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
jmp 0x1001f256
push edi
mov ecx, esi
call fcn.100204b0
lea ecx, [ebp - 0xa0]
call fcn.1001c760
mov byte [ebp - 4], 3
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub ecx, esi
imul ecx
mov dword [ebp - 0xe0], 0
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1001f97c
xor ebx, ebx
mov dword [ebp - 0xd8], ebx
lea eax, [esi + ebx]
or edi, 0xffffffff
mov dword [ebp - 0x14], eax
add eax, 4
push eax
call fcn.1003d469
mov ecx, dword [ebp - 0x8c]
mov ebx, eax
add esp, 4
mov dword [ebp - 0xcc], ecx
cmp ebx, ecx
ja 0x1001f53c
mov eax, dword [ebp - 0x14]
lea edi, [ebp - 0xa0]
cmp ecx, 8
mov dword [ebp - 0x90], ebx
lea esi, [ebx + ebx]
cmovae edi, dword [ebp - 0xa0]
add eax, 4
push esi
push eax
push edi
call fcn.100341b0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x1001f637
cmp ebx, 0x7ffffffe
ja 0x1001fa16
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x1001f55c
mov esi, SysReAllocString
jmp 0x1001f57a
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x1001f572
mov esi, SysReAllocString
jmp 0x1001f57a
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1001f58c
or ecx, 0xffffffff
jmp 0x1001f594
cmp ecx, 0x1000
jb 0x1001f5b8
lea eax, [ecx + 0x23]
cmp eax, ecx
cmovbe eax, edi
push eax
call fcn.100325e6
add esp, 4
test eax, eax
je 0x1001fa1b
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x1001f5cb
test ecx, ecx
je 0x1001f5c9
push ecx
call fcn.100325e6
add esp, 4
mov edi, eax
jmp 0x1001f5cb
xor edi, edi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x8c], esi
add eax, 4
lea esi, [ebx + ebx]
mov dword [ebp - 0x90], ebx
push esi
push eax
push edi
call fcn.10033c30
mov edx, dword [ebp - 0xcc]
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
cmp edx, 8
jb 0x1001f631
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001f627
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001fa1b
push edx
push ecx
call fcn.100325d8
add esp, 8
mov dword [ebp - 0xa0], edi
mov eax, dword [ebp - 0x14]
add eax, 0x284
push eax
call fcn.1003d469
mov ecx, dword [ebp - 0x74]
mov ebx, eax
add esp, 4
mov dword [ebp - 0xcc], ecx
cmp ebx, ecx
ja 0x1001f68b
mov eax, dword [ebp - 0x14]
lea edi, [ebp - 0x88]
cmp ecx, 8
mov dword [ebp - 0x78], ebx
lea esi, [ebx + ebx]
cmovae edi, dword [ebp - 0x88]
add eax, 0x284
push esi
push eax
push edi
call fcn.100341b0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x1001f787
cmp ebx, 0x7ffffffe
ja 0x1001fa16
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x1001f6ab
mov esi, SysReAllocString
jmp 0x1001f6c9
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x1001f6c1
mov esi, SysReAllocString
jmp 0x1001f6c9
lea eax, [ecx + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1001f6db
or ecx, 0xffffffff
jmp 0x1001f6e3
cmp ecx, 0x1000
jb 0x1001f70c
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.100325e6
add esp, 4
test eax, eax
je 0x1001fa1b
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x1001f71f
test ecx, ecx
je 0x1001f71d
push ecx
call fcn.100325e6
add esp, 4
mov edi, eax
jmp 0x1001f71f
xor edi, edi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x74], esi
add eax, 0x284
lea esi, [ebx + ebx]
mov dword [ebp - 0x78], ebx
push esi
push eax
push edi
call fcn.10033c30
mov edx, dword [ebp - 0xcc]
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
cmp edx, 8
jb 0x1001f781
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001f777
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001fa1b
push edx
push ecx
call fcn.100325d8
add esp, 8
mov dword [ebp - 0x88], edi
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x3cc]
mov dword [ebp - 0x58], eax
mov eax, dword [ecx + 0x3d0]
mov dword [ebp - 0x54], eax
mov eax, dword [ecx + 0x3d4]
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + 0x3d8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx + 0x3dc]
mov dword [ebp - 0x48], eax
mov eax, dword [ecx + 0x3e0]
mov dword [ebp - 0x44], eax
lea eax, [ecx + 0x384]
push eax
call fcn.1003d469
mov edx, dword [ebp - 0x5c]
mov ebx, eax
add esp, 4
mov dword [ebp - 0xcc], edx
cmp ebx, edx
ja 0x1001f80c
mov eax, dword [ebp - 0x14]
lea edi, [ebp - 0x70]
cmp edx, 8
mov dword [ebp - 0x60], ebx
lea esi, [ebx + ebx]
cmovae edi, dword [ebp - 0x70]
add eax, 0x384
push esi
push eax
push edi
call fcn.100341b0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x1001f902
cmp ebx, 0x7ffffffe
ja 0x1001fa16
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x1001f82c
mov esi, SysReAllocString
jmp 0x1001f84a
mov ecx, edx
mov eax, SysReAllocString
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x1001f842
mov esi, SysReAllocString
jmp 0x1001f84a
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1001f85c
or ecx, 0xffffffff
jmp 0x1001f864
cmp ecx, 0x1000
jb 0x1001f88d
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.100325e6
add esp, 4
test eax, eax
je 0x1001fa1b
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x1001f8a0
test ecx, ecx
je 0x1001f89e
push ecx
call fcn.100325e6
add esp, 4
mov edi, eax
jmp 0x1001f8a0
xor edi, edi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x5c], esi
add eax, 0x384
lea esi, [ebx + ebx]
mov dword [ebp - 0x60], ebx
push esi
push eax
push edi
call fcn.10033c30
mov edx, dword [ebp - 0xcc]
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
cmp edx, 8
jb 0x1001f8ff
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001f8f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001fa1b
push edx
push ecx
call fcn.100325d8
add esp, 8
mov dword [ebp - 0x70], edi
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0xa0]
mov ebx, dword [ebp - 0xd4]
push ecx
mov eax, dword [eax + 0x3e4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 4]
mov byte [ebp - 0x3c], 0
cmp dword [ebx + 8], eax
je 0x1001f934
mov ecx, eax
call fcn.1001d360
add dword [ebx + 4], 0x68
jmp 0x1001f93c
push eax
mov ecx, ebx
call fcn.10020b80
mov ecx, dword [ebp - 0x28]
mov eax, 0x10624dd3
mov esi, dword [ebp - 0x2c]
sub ecx, esi
mov edi, dword [ebp - 0xe0]
mov ebx, dword [ebp - 0xd8]
inc edi
imul ecx
add ebx, 0x3e8
mov dword [ebp - 0xe0], edi
sar edx, 6
mov eax, edx
mov dword [ebp - 0xd8], ebx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x1001f4e0
mov eax, dword [ebp - 0xc8]
mov byte [eax], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa0]
call fcn.10012010
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x1001f9f4
mov ecx, dword [ebp - 0x24]
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 0x1001f9d5
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001fa1b
push ecx
push esi
call fcn.100325d8
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.1000c810
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.1000c810
mov al, 1
jmp 0x1001f163
call fcn.10001ab0
call fcn.1003d419
call fcn.1003d419
call fcn.1000c800
int3