Function at 0x10076fe0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3c
push esi
mov esi, dword [esp + 0x48]
push edi
xor edi, edi
cmp esi, edi
mov dword [esp + 0x10], esi
jne 0x10076ffb
pop edi
xor eax, eax
pop esi
add esp, 0x3c
ret
push esi
call fcn.1007ae50
add esp, 4
test eax, eax
jne 0x1007700e
pop edi
pop esi
add esp, 0x3c
ret
push ebx
mov dword [esp + 0xc], edi
mov eax, dword [esi]
push ebp
mov ecx, 1
xor ebp, ebp
cmp eax, ecx
je 0x1007729c
cmp eax, 3
je 0x1007729c
cmp eax, 2
jne 0x10077681
mov eax, dword [esp + 0x50]
mov esi, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ecx
jle 0x10077681
lea ebx, [esp + 0x60]
dec eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x30], eax
jmp 0x10077063
mov esi, dword [esp + 0x14]
xor edi, edi
mov eax, dword [ebx + 8]
mov ecx, eax
and ecx, 0x20000000
cmp ecx, 0x20000000
jne 0x100771c5
and eax, 0xdfffffff
mov dword [ebx + 8], eax
mov ecx, dword [ebx]
cmp ecx, edi
je 0x1007727a
cmp eax, 0x80000004
jne 0x100770f9
mov eax, dword [ecx]
lea edx, [esp + 0x28]
push edx
push eax
call fcn.1007a600
mov ecx, dword [esp + 0x30]
add esp, 8
xor edi, edi
test ecx, ecx
jbe 0x1007727a
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x100770c2
push eax
call fcn.10072ca0
add esp, 4
test ebp, ebp
mov dword [esp + 0x2c], 0
jne 0x100770e2
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.10076af0
add esp, 8
mov ebp, eax
mov eax, dword [esp + 0x2c]
inc edi
mov dword [esi], eax
mov eax, dword [esp + 0x28]
add esi, 4
cmp edi, eax
jb 0x100770b3
jmp 0x1007727a
cmp eax, 0x80000005
jne 0x10077163
lea edx, [esp + 0x20]
push edx
push ecx
call fcn.1007a600
mov eax, dword [esp + 0x28]
add esp, 8
xor esi, esi
test eax, eax
jbe 0x1007727a
mov edi, dword [esp + 0x14]
mov eax, dword [ebx]
test eax, eax
je 0x10077131
mov eax, dword [eax]
push eax
call fcn.10072ca0
add esp, 4
test ebp, ebp
mov dword [esp + 0x24], 0
jne 0x1007714d
lea ecx, [esp + 0x24]
push ecx
push edi
call fcn.10076b90
add esp, 8
mov ebp, eax
mov edx, dword [ebx]
mov eax, dword [esp + 0x24]
inc esi
mov dword [edx], eax
mov eax, dword [esp + 0x20]
cmp esi, eax
jb 0x10077120
jmp 0x1007727a
push eax
call fcn.10079a40
mov edi, eax
add esp, 4
test edi, edi
je 0x1007727a
mov edx, dword [ebx]
lea ecx, [esp + 0x40]
push ecx
mov eax, dword [edx]
push eax
call fcn.1007a600
mov esi, dword [esp + 0x48]
mov edx, eax
imul esi, edi
mov ecx, esi
xor eax, eax
mov ebx, ecx
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
add esp, 8
and ecx, 3
test ebp, ebp
rep stosb byte es:[edi], al
jne 0x10077276
mov ecx, dword [esp + 0x14]
push esi
push edx
mov eax, dword [ecx]
call dword [eax + 0x20]
cmp esi, eax
jle 0x10077276
jmp 0x10077271
cmp eax, 0x80000004
jne 0x100771ff
mov eax, dword [ebx]
cmp eax, edi
je 0x100771dd
mov ecx, dword [eax]
push ecx
call fcn.10072ca0
add esp, 4
cmp ebp, edi
mov dword [esp + 0x1c], edi
jne 0x100771f5
lea edx, [esp + 0x1c]
push edx
push esi
call fcn.10076af0
add esp, 8
mov ebp, eax
mov eax, dword [ebx]
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
jmp 0x1007727a
cmp eax, 0x80000005
jne 0x10077239
mov eax, dword [ebx]
cmp eax, edi
je 0x10077217
mov edx, dword [eax]
push edx
call fcn.10072ca0
add esp, 4
cmp ebp, edi
mov dword [esp + 0x18], edi
jne 0x1007722f
lea eax, [esp + 0x18]
push eax
push esi
call fcn.10076b90
add esp, 8
mov ebp, eax
mov ecx, dword [ebx]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
jmp 0x1007727a
push eax
call fcn.10079a40
mov esi, eax
add esp, 4
cmp esi, edi
je 0x1007727a
mov edx, dword [ebx]
mov ecx, esi
mov ebx, ecx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
test ebp, ebp
rep stosb byte es:[edi], al
jne 0x10077276
mov ecx, dword [esp + 0x14]
push esi
push edx
mov eax, dword [ecx]
call dword [eax + 0x20]
cmp esi, eax
jle 0x10077276
mov ebp, 1
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x30]
add ebx, 0xc
dec eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x30], eax
jne 0x1007705d
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x3c
ret
mov eax, dword [esp + 0x50]
mov ebx, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x40], ecx
jle 0x10077681
lea edi, [esp + 0x60]
mov dword [esp + 0x1c], edi
jmp 0x100772cd
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10077681
mov eax, dword [edi + 8]
mov ecx, eax
and ecx, 0x20000000
cmp ecx, 0x20000000
jne 0x100774ec
and eax, 0xdfffffff
mov dword [edi + 8], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x1007764d
cmp eax, 0x80000004
jne 0x1007739f
mov eax, dword [ecx]
lea edx, [esp + 0x30]
push edx
push eax
call fcn.1007a600
mov ecx, dword [esp + 0x38]
add esp, 8
xor edi, edi
test ecx, ecx
jbe 0x1007764d
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x1007733c
push eax
call fcn.10072ca0
add esp, 4
test ebp, ebp
mov dword [esp + 0x20], 0
jne 0x1007737c
mov eax, dword [esp + 0x18]
cmp dword [eax], 3
jne 0x10077363
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call fcn.10076c10
jmp 0x10077377
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
push edx
call fcn.100768c0
add esp, 0xc
mov ebp, eax
mov eax, dword [esp + 0x20]
mov dword [esi], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1007764d
mov eax, dword [esp + 0x30]
inc edi
add esi, 4
cmp edi, eax
jb 0x1007732d
jmp 0x1007764d
cmp eax, 0x80000005
jne 0x1007743a
lea edx, [esp + 0x34]
push edx
push ecx
call fcn.1007a600
mov ecx, dword [esp + 0x3c]
add esp, 8
xor edi, edi
test ecx, ecx
jbe 0x1007764d
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x100773d7
push eax
call fcn.10072ca0
add esp, 4
test ebp, ebp
mov dword [esp + 0x24], 0
jne 0x10077417
mov eax, dword [esp + 0x18]
cmp dword [eax], 3
jne 0x100773fe
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.10076ec0
jmp 0x10077412
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push ecx
push edx
call fcn.10076a50
add esp, 0xc
mov ebp, eax
mov eax, dword [esp + 0x24]
mov dword [esi], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1007764d
mov eax, dword [esp + 0x34]
inc edi
add esi, 4
cmp edi, eax
jb 0x100773c8
jmp 0x1007764d
push eax
call fcn.10079a40
mov edi, eax
add esp, 4
test edi, edi
je 0x1007764d
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x44]
push ecx
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call fcn.1007a600
mov esi, dword [esp + 0x4c]
mov ebx, eax
imul esi, edi
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 8
and ecx, 3
test ebp, ebp
rep stosb byte es:[edi], al
jne 0x1007764d
mov edi, dword [esp + 0x14]
push 1
push ebp
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x38]
push ebp
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10077679
mov eax, dword [esp + 0x18]
cmp dword [eax], 3
jne 0x100774dd
mov edx, dword [eax + 0x130]
lea ecx, [eax + 0xc]
push ecx
mov ecx, dword [esp + 0x4c]
add eax, 0x2c
push edx
push eax
mov eax, dword [esp + 0x44]
push eax
push ebx
push ecx
call fcn.1007a380
add esp, 0x18
cmp dword [esp + 0x38], esi
jge 0x1007764d
jmp 0x10077648
cmp eax, 0x80000004
jne 0x10077559
mov eax, dword [edi]
test eax, eax
je 0x10077504
mov edx, dword [eax]
push edx
call fcn.10072ca0
add esp, 4
test ebp, ebp
mov dword [esp + 0x28], 0
jne 0x1007754c
cmp dword [esi], 3
jne 0x10077537
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
push esi
call fcn.10076c10
mov ecx, dword [edi]
mov edx, dword [esp + 0x34]
add esp, 0xc
mov ebp, eax
mov dword [ecx], edx
jmp 0x1007764d
lea edx, [esp + 0x10]
lea eax, [esp + 0x28]
push edx
push eax
push ebx
call fcn.100768c0
add esp, 0xc
mov ebp, eax
mov ecx, dword [edi]
mov edx, dword [esp + 0x28]
mov dword [ecx], edx
jmp 0x1007764d
cmp eax, 0x80000005
jne 0x100775c6
mov eax, dword [edi]
test eax, eax
je 0x10077571
mov eax, dword [eax]
push eax
call fcn.10072ca0
add esp, 4
test ebp, ebp
mov dword [esp + 0x2c], 0
jne 0x100775b9
cmp dword [esi], 3
jne 0x100775a4
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2c]
push ecx
push edx
push esi
call fcn.10076ec0
mov edx, dword [edi]
mov ebp, eax
mov eax, dword [esp + 0x38]
add esp, 0xc
mov dword [edx], eax
jmp 0x1007764d
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
push ecx
push ebx
call fcn.10076a50
add esp, 0xc
mov ebp, eax
mov edx, dword [edi]
mov eax, dword [esp + 0x2c]
mov dword [edx], eax
jmp 0x1007764d
push eax
call fcn.10079a40
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1007764d
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov esi, dword [ecx]
mov ecx, ebx
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test ebp, ebp
rep stosb byte es:[edi], al
jne 0x1007764d
mov eax, dword [esp + 0x14]
push 1
push ebp
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
push ebp
push ecx
push ebx
push esi
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10077679
mov eax, dword [esp + 0x18]
cmp dword [eax], 3
jne 0x10077642
mov edx, dword [eax + 0x130]
lea ecx, [eax + 0xc]
push ecx
add eax, 0x2c
push edx
push eax
mov eax, dword [esp + 0x48]
push eax
push esi
push edi
call fcn.1007a380
add esp, 0x18
cmp ebx, dword [esp + 0x3c]
jle 0x1007764d
mov ebp, 1
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x50]
inc eax
add edx, 0xc
cmp eax, ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], edx
jl 0x100772c1
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x3c
ret
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x3c
ret