Function at 0x1001d6b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10056723
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x10075098]
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 0x1001d71c
nop dword [eax]
mov ecx, esi
call fcn.10011fe0
add esi, 0x68
cmp esi, edi
jne 0x1001d700
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 0x1001d72c
mov ecx, dword [ebx]
push ecx
push 0x80
push 3
push ecx
push 0
mov edx, SysReAllocString
call fcn.10010e30
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
je 0x1001d8a1
test esi, esi
je 0x1001d8a1
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.1001e740
test al, al
je 0x1001d842
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 0x1001d842
jb 0x1001d7ea
cmp ecx, 0x4ffffe
ja 0x1001d842
lea eax, [ebp - 0xc1]
mov byte [ebp - 0xc1], 0
push eax
lea ecx, [ebp - 0x20]
push ecx
push edi
call fcn.1000ce80
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 0x1001d842
jb 0x1001d829
cmp eax, edi
jae 0x1001d842
mov byte [ebp - 0xc1], cl
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0xc1]
push ecx
push edx
push eax
mov ecx, edx
call fcn.1000ce80
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x1c]
jne 0x1001d8c1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x1001d8a1
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1001d882
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001e15b
push edx
push ecx
call fcn.100321e9
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.100321d8
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.10022de0
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.100230b0
test al, al
jne 0x1001d970
mov eax, dword [ebp - 0xc8]
mov byte [eax], 1
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x1001d851
mov edx, dword [ebp - 0x30]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1001d94c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001e160
push edx
push ecx
call fcn.100321e9
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
jmp 0x1001d851
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 0x1001d9c9
mov eax, dword [ebp - 0xc8]
mov byte [eax], 1
mov byte [ebp - 4], 0
test esi, esi
je 0x1001d851
mov ecx, dword [ebp - 0x30]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x1001d9c5
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001e15b
push ecx
push esi
jmp 0x1001d94e
test edi, edi
jne 0x1001da72
mov byte [ebp - 4], 0
test esi, esi
je 0x1001da1b
mov ecx, dword [ebp - 0x30]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x1001d9fc
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001e15b
push ecx
push esi
call fcn.100321e9
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 0x1001da6b
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1001da4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001e15b
push edx
push ecx
call fcn.100321e9
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov al, 1
jmp 0x1001d8a3
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.1001ef00
imul eax, edi, 0x3e8
push eax
push esi
push dword [ebp - 0x2c]
call fcn.10033850
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 0x1001db30
xor edi, edi
nop dword [eax + eax]
cmp dword [ebx + edi], 0x23ab45db
jne 0x1001db62
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 0x1001dae0
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 0x1001dbe0
cmp edi, 0x2762762
ja 0x1001e165
jmp 0x1001dbd8
mov eax, dword [ebp - 0xc8]
mov byte [eax], 1
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x1001d996
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 0x1001dbb4
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001e15b
push ecx
push edi
call fcn.100321e9
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
jmp 0x1001d996
push edi
mov ecx, esi
call fcn.1001ebf0
lea ecx, [ebp - 0xa0]
call fcn.1001aea0
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 0x1001e0bc
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.1003d089
mov ecx, dword [ebp - 0x8c]
mov ebx, eax
add esp, 4
mov dword [ebp - 0xcc], ecx
cmp ebx, ecx
ja 0x1001dc7c
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.10033dd0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x1001dd77
cmp ebx, 0x7ffffffe
ja 0x1001e156
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x1001dc9c
mov esi, SysReAllocString
jmp 0x1001dcba
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x1001dcb2
mov esi, SysReAllocString
jmp 0x1001dcba
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1001dccc
or ecx, 0xffffffff
jmp 0x1001dcd4
cmp ecx, 0x1000
jb 0x1001dcf8
lea eax, [ecx + 0x23]
cmp eax, ecx
cmovbe eax, edi
push eax
call fcn.100321f7
add esp, 4
test eax, eax
je 0x1001e15b
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x1001dd0b
test ecx, ecx
je 0x1001dd09
push ecx
call fcn.100321f7
add esp, 4
mov edi, eax
jmp 0x1001dd0b
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.10033850
mov edx, dword [ebp - 0xcc]
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
cmp edx, 8
jb 0x1001dd71
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001dd67
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001e15b
push edx
push ecx
call fcn.100321e9
add esp, 8
mov dword [ebp - 0xa0], edi
mov eax, dword [ebp - 0x14]
add eax, 0x284
push eax
call fcn.1003d089
mov ecx, dword [ebp - 0x74]
mov ebx, eax
add esp, 4
mov dword [ebp - 0xcc], ecx
cmp ebx, ecx
ja 0x1001ddcb
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.10033dd0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x1001dec7
cmp ebx, 0x7ffffffe
ja 0x1001e156
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x1001ddeb
mov esi, SysReAllocString
jmp 0x1001de09
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x1001de01
mov esi, SysReAllocString
jmp 0x1001de09
lea eax, [ecx + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1001de1b
or ecx, 0xffffffff
jmp 0x1001de23
cmp ecx, 0x1000
jb 0x1001de4c
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.100321f7
add esp, 4
test eax, eax
je 0x1001e15b
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x1001de5f
test ecx, ecx
je 0x1001de5d
push ecx
call fcn.100321f7
add esp, 4
mov edi, eax
jmp 0x1001de5f
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.10033850
mov edx, dword [ebp - 0xcc]
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
cmp edx, 8
jb 0x1001dec1
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001deb7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001e15b
push edx
push ecx
call fcn.100321e9
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.1003d089
mov edx, dword [ebp - 0x5c]
mov ebx, eax
add esp, 4
mov dword [ebp - 0xcc], edx
cmp ebx, edx
ja 0x1001df4c
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.10033dd0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x1001e042
cmp ebx, 0x7ffffffe
ja 0x1001e156
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x1001df6c
mov esi, SysReAllocString
jmp 0x1001df8a
mov ecx, edx
mov eax, SysReAllocString
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x1001df82
mov esi, SysReAllocString
jmp 0x1001df8a
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1001df9c
or ecx, 0xffffffff
jmp 0x1001dfa4
cmp ecx, 0x1000
jb 0x1001dfcd
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.100321f7
add esp, 4
test eax, eax
je 0x1001e15b
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x1001dfe0
test ecx, ecx
je 0x1001dfde
push ecx
call fcn.100321f7
add esp, 4
mov edi, eax
jmp 0x1001dfe0
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.10033850
mov edx, dword [ebp - 0xcc]
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
cmp edx, 8
jb 0x1001e03f
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001e035
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001e15b
push edx
push ecx
call fcn.100321e9
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 0x1001e074
mov ecx, eax
call fcn.1001baa0
add dword [ebx + 4], 0x68
jmp 0x1001e07c
push eax
mov ecx, ebx
call fcn.1001f2c0
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 0x1001dc20
mov eax, dword [ebp - 0xc8]
mov byte [eax], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa0]
call fcn.10011fe0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x1001e134
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 0x1001e115
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001e15b
push ecx
push esi
call fcn.100321e9
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.1000c7e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.1000c7e0
mov al, 1
jmp 0x1001d8a3
call fcn.10001aa0
call fcn.1003d039
call fcn.1003d039
call fcn.1000c7d0
int3