Function at 0x10029b10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ede3
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x1006500c]
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 0x10029b76
nop dword [eax]
mov ecx, esi
call fcn.10027b10
add esi, 0x68
cmp esi, edi
jne 0x10029b60
mov eax, dword [ebp - 0xd4]
mov esi, dword [eax]
mov edi, dword [ebp - 0xc8]
mov ecx, ebx
mov dword [eax + 4], esi
mov byte [edi], 0
cmp dword [ebx + 0x14], 8
jb 0x10029b8c
mov ecx, dword [ebx]
push ecx
push 0x80
push 3
push ecx
push 0
mov edx, 0x80000000
call fcn.10019cb0
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
je 0x10029d22
test esi, esi
je 0x10029d22
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x2c], xmm0
call fcn.10014e91
mov dword [ebp - 4], 0
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xdc]
movlpd qword [ebp - 0xd0], xmm0
push eax
lea eax, [ebp - 0xd0]
movlpd qword [ebp - 0xdc], xmm0
push eax
push ebx
movlpd qword [ebp - 0xe4], xmm0
call fcn.1002aea0
test al, al
je 0x10029ca7
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 0x10029ca1
jb 0x10029c41
cmp ecx, 0x4ffffe
ja 0x10029ca1
lea eax, [ebp - 0xc1]
mov byte [ebp - 0xc1], 0
push eax
lea ecx, [ebp - 0x2c]
push ecx
push edi
call fcn.100159dd
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
call fcn.10014f59
push 0
lea ecx, [ebp - 0x14]
push ecx
mov eax, dword [eax]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp ecx, ebx
ja 0x10029ca1
jb 0x10029c88
cmp eax, edi
jae 0x10029ca1
mov byte [ebp - 0xc1], cl
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0xc1]
push ecx
push edx
push eax
mov ecx, edx
call fcn.100159dd
mov edi, dword [ebp - 0xc8]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.10014c65
test al, al
jne 0x10029d13
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x38]
movq qword [ebp - 0x38], xmm0
call fcn.10014e91
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc0]
call fcn.1002fc90
lea ecx, [ebp - 0x2c]
call fcn.10014f59
mov edx, dword [eax]
lea eax, [ebp - 0x38]
push eax
call fcn.10014c5f
push eax
push edx
lea ecx, [ebp - 0xc0]
call fcn.1002fef0
test al, al
jne 0x10029d42
mov byte [edi], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.10014df3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10014df3
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.10036316
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x38]
call fcn.10014c5f
xor edx, edx
mov ecx, 0x3e8
div ecx
test edx, edx
jne 0x10029d04
lea ecx, [ebp - 0x38]
call fcn.10014c5f
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov ebx, edx
shr ebx, 6
test ebx, ebx
je 0x1002a43e
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.1002b9a0
lea ecx, [ebp - 0x38]
call fcn.10014f59
mov ecx, dword [eax]
imul eax, ebx, 0x3e8
push eax
push ecx
push dword [ebp - 0x20]
call fcn.10037ed0
mov edi, dword [ebp - 0x20]
xor ecx, ecx
mov dword [ebp - 0x14], 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 0x10029e3a
xor esi, esi
nop dword [eax + eax]
cmp dword [edi + esi], 0x23ab45db
jne 0x10029e6c
inc dword [ebp - 0x14]
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 - 0x14], eax
jb 0x10029df0
mov edi, dword [ebp - 0xd4]
mov eax, 0x4ec4ec4f
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jbe 0x10029eea
cmp ebx, 0x2762762
ja 0x1002a460
jmp 0x10029ee2
mov ecx, dword [ebp - 0xc8]
mov byte [ecx], 1
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x10029d07
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 0x10029ebe
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002a465
push ecx
push esi
call fcn.10036357
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
jmp 0x10029d07
push ebx
mov ecx, edi
call fcn.1002b670
lea ecx, [ebp - 0xa0]
call fcn.10026790
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 - 0xd8], 0
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1002a3c6
xor ebx, ebx
mov dword [ebp - 0xe0], ebx
lea eax, [esi + ebx]
or edi, 0xffffffff
mov dword [ebp - 0x14], eax
add eax, 4
push eax
call fcn.1003dd45
mov ecx, dword [ebp - 0x8c]
mov ebx, eax
add esp, 4
mov dword [ebp - 0xcc], ecx
cmp ebx, ecx
ja 0x10029f86
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.10037950
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x1002a081
cmp ebx, 0x7ffffffe
ja 0x1002a46f
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x10029fa6
mov esi, 0x7ffffffe
jmp 0x10029fc4
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x10029fbc
mov esi, 0x7ffffffe
jmp 0x10029fc4
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x10029fd6
or ecx, 0xffffffff
jmp 0x10029fde
cmp ecx, 0x1000
jb 0x1002a002
lea eax, [ecx + 0x23]
cmp eax, ecx
cmovbe eax, edi
push eax
call fcn.10036327
add esp, 4
test eax, eax
je 0x1002a465
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x1002a015
test ecx, ecx
je 0x1002a013
push ecx
call fcn.10036327
add esp, 4
mov edi, eax
jmp 0x1002a015
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.10037ed0
mov edx, dword [ebp - 0xcc]
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
cmp edx, 8
jb 0x1002a07b
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002a071
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002a465
push edx
push ecx
call fcn.10036357
add esp, 8
mov dword [ebp - 0xa0], edi
mov eax, dword [ebp - 0x14]
add eax, 0x284
push eax
call fcn.1003dd45
mov ecx, dword [ebp - 0x74]
mov ebx, eax
add esp, 4
mov dword [ebp - 0xcc], ecx
cmp ebx, ecx
ja 0x1002a0d5
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.10037950
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x1002a1d1
cmp ebx, 0x7ffffffe
ja 0x1002a46f
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x1002a0f5
mov esi, 0x7ffffffe
jmp 0x1002a113
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x1002a10b
mov esi, 0x7ffffffe
jmp 0x1002a113
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1002a125
or ecx, 0xffffffff
jmp 0x1002a12d
cmp ecx, 0x1000
jb 0x1002a156
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.10036327
add esp, 4
test eax, eax
je 0x1002a465
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x1002a169
test ecx, ecx
je 0x1002a167
push ecx
call fcn.10036327
add esp, 4
mov edi, eax
jmp 0x1002a169
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.10037ed0
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [ebp - 0xcc]
cmp eax, 8
jb 0x1002a1cb
mov ecx, dword [ebp - 0x88]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002a1c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002a465
push edx
push ecx
call fcn.10036357
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.1003dd45
mov edx, dword [ebp - 0x5c]
mov ebx, eax
add esp, 4
mov dword [ebp - 0xcc], edx
cmp ebx, edx
ja 0x1002a256
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.10037950
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x1002a34c
cmp ebx, 0x7ffffffe
ja 0x1002a46f
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x1002a276
mov esi, 0x7ffffffe
jmp 0x1002a294
mov ecx, edx
mov eax, 0x7ffffffe
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x1002a28c
mov esi, 0x7ffffffe
jmp 0x1002a294
lea eax, [ecx + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1002a2a6
or ecx, 0xffffffff
jmp 0x1002a2ae
cmp ecx, 0x1000
jb 0x1002a2d7
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.10036327
add esp, 4
test eax, eax
je 0x1002a465
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x1002a2ea
test ecx, ecx
je 0x1002a2e8
push ecx
call fcn.10036327
add esp, 4
mov edi, eax
jmp 0x1002a2ea
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.10037ed0
mov edx, dword [ebp - 0xcc]
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
cmp edx, 8
jb 0x1002a349
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002a33f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002a465
push edx
push ecx
call fcn.10036357
add esp, 8
mov dword [ebp - 0x70], edi
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0xa0]
mov edi, dword [ebp - 0xd4]
push ecx
mov eax, dword [eax + 0x3e4]
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 4]
mov byte [ebp - 0x3c], 0
cmp dword [edi + 8], eax
je 0x1002a37e
mov ecx, eax
call fcn.10027c40
add dword [edi + 4], 0x68
jmp 0x1002a386
push eax
mov ecx, edi
call fcn.1002bd20
mov ecx, dword [ebp - 0x1c]
mov eax, 0x10624dd3
mov esi, dword [ebp - 0x20]
sub ecx, esi
mov edi, dword [ebp - 0xd8]
mov ebx, dword [ebp - 0xe0]
inc edi
imul ecx
add ebx, 0x3e8
mov dword [ebp - 0xd8], edi
sar edx, 6
mov eax, edx
mov dword [ebp - 0xe0], ebx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x10029f2a
mov ecx, dword [ebp - 0xc8]
mov byte [ecx], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa0]
call fcn.10027b10
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x1002a43e
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 0x1002a41f
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002a46a
push ecx
push esi
call fcn.10036357
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 - 0x38]
call fcn.10014df3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10014df3
mov al, 1
jmp 0x10029d24
call fcn.10002890
call fcn.1003df6b
call fcn.1003df6b
call fcn.10002957
int3