Function at 0x10013b30
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 0x10013b4b
pop edi
xor eax, eax
pop esi
add esp, 0x3c
ret
push esi
call fcn.10016f90
add esp, 4
test eax, eax
jne 0x10013b5e
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 0x10013dec
cmp eax, 3
je 0x10013dec
cmp eax, 2
jne 0x100141d1
mov eax, dword [esp + 0x50]
mov esi, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ecx
jle 0x100141d1
lea ebx, [esp + 0x60]
dec eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x30], eax
jmp 0x10013bb3
mov esi, dword [esp + 0x14]
xor edi, edi
mov eax, dword [ebx + 8]
mov ecx, eax
and ecx, 0x20000000
cmp ecx, 0x20000000
jne 0x10013d15
and eax, 0xdfffffff
mov dword [ebx + 8], eax
mov ecx, dword [ebx]
cmp ecx, edi
je 0x10013dca
cmp eax, 0x80000004
jne 0x10013c49
mov eax, dword [ecx]
lea edx, [esp + 0x28]
push edx
push eax
call fcn.10016cc0
mov ecx, dword [esp + 0x30]
add esp, 8
xor edi, edi
test ecx, ecx
jbe 0x10013dca
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x10013c12
push eax
call fcn.1000fda0
add esp, 4
test ebp, ebp
mov dword [esp + 0x2c], 0
jne 0x10013c32
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.10013640
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 0x10013c03
jmp 0x10013dca
cmp eax, 0x80000005
jne 0x10013cb3
lea edx, [esp + 0x20]
push edx
push ecx
call fcn.10016cc0
mov eax, dword [esp + 0x28]
add esp, 8
xor esi, esi
test eax, eax
jbe 0x10013dca
mov edi, dword [esp + 0x14]
mov eax, dword [ebx]
test eax, eax
je 0x10013c81
mov eax, dword [eax]
push eax
call fcn.1000fda0
add esp, 4
test ebp, ebp
mov dword [esp + 0x24], 0
jne 0x10013c9d
lea ecx, [esp + 0x24]
push ecx
push edi
call fcn.100136e0
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 0x10013c70
jmp 0x10013dca
push eax
call fcn.10016c20
mov edi, eax
add esp, 4
test edi, edi
je 0x10013dca
mov edx, dword [ebx]
lea ecx, [esp + 0x40]
push ecx
mov eax, dword [edx]
push eax
call fcn.10016cc0
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 0x10013dc6
mov ecx, dword [esp + 0x14]
push esi
push edx
mov eax, dword [ecx]
call dword [eax + 0x20]
cmp esi, eax
jle 0x10013dc6
jmp 0x10013dc1
cmp eax, 0x80000004
jne 0x10013d4f
mov eax, dword [ebx]
cmp eax, edi
je 0x10013d2d
mov ecx, dword [eax]
push ecx
call fcn.1000fda0
add esp, 4
cmp ebp, edi
mov dword [esp + 0x1c], edi
jne 0x10013d45
lea edx, [esp + 0x1c]
push edx
push esi
call fcn.10013640
add esp, 8
mov ebp, eax
mov eax, dword [ebx]
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
jmp 0x10013dca
cmp eax, 0x80000005
jne 0x10013d89
mov eax, dword [ebx]
cmp eax, edi
je 0x10013d67
mov edx, dword [eax]
push edx
call fcn.1000fda0
add esp, 4
cmp ebp, edi
mov dword [esp + 0x18], edi
jne 0x10013d7f
lea eax, [esp + 0x18]
push eax
push esi
call fcn.100136e0
add esp, 8
mov ebp, eax
mov ecx, dword [ebx]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
jmp 0x10013dca
push eax
call fcn.10016c20
mov esi, eax
add esp, 4
cmp esi, edi
je 0x10013dca
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 0x10013dc6
mov ecx, dword [esp + 0x14]
push esi
push edx
mov eax, dword [ecx]
call dword [eax + 0x20]
cmp esi, eax
jle 0x10013dc6
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 0x10013bad
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 0x100141d1
lea edi, [esp + 0x60]
mov dword [esp + 0x1c], edi
jmp 0x10013e1d
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100141d1
mov eax, dword [edi + 8]
mov ecx, eax
and ecx, 0x20000000
cmp ecx, 0x20000000
jne 0x1001403c
and eax, 0xdfffffff
mov dword [edi + 8], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x1001419d
cmp eax, 0x80000004
jne 0x10013eef
mov eax, dword [ecx]
lea edx, [esp + 0x30]
push edx
push eax
call fcn.10016cc0
mov ecx, dword [esp + 0x38]
add esp, 8
xor edi, edi
test ecx, ecx
jbe 0x1001419d
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x10013e8c
push eax
call fcn.1000fda0
add esp, 4
test ebp, ebp
mov dword [esp + 0x20], 0
jne 0x10013ecc
mov eax, dword [esp + 0x18]
cmp dword [eax], 3
jne 0x10013eb3
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call fcn.10013760
jmp 0x10013ec7
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
push edx
call fcn.10013410
add esp, 0xc
mov ebp, eax
mov eax, dword [esp + 0x20]
mov dword [esi], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1001419d
mov eax, dword [esp + 0x30]
inc edi
add esi, 4
cmp edi, eax
jb 0x10013e7d
jmp 0x1001419d
cmp eax, 0x80000005
jne 0x10013f8a
lea edx, [esp + 0x34]
push edx
push ecx
call fcn.10016cc0
mov ecx, dword [esp + 0x3c]
add esp, 8
xor edi, edi
test ecx, ecx
jbe 0x1001419d
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x10013f27
push eax
call fcn.1000fda0
add esp, 4
test ebp, ebp
mov dword [esp + 0x24], 0
jne 0x10013f67
mov eax, dword [esp + 0x18]
cmp dword [eax], 3
jne 0x10013f4e
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.10013a10
jmp 0x10013f62
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push ecx
push edx
call fcn.100135a0
add esp, 0xc
mov ebp, eax
mov eax, dword [esp + 0x24]
mov dword [esi], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1001419d
mov eax, dword [esp + 0x34]
inc edi
add esi, 4
cmp edi, eax
jb 0x10013f18
jmp 0x1001419d
push eax
call fcn.10016c20
mov edi, eax
add esp, 4
test edi, edi
je 0x1001419d
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x44]
push ecx
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call fcn.10016cc0
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 0x1001419d
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 0x100141c9
mov eax, dword [esp + 0x18]
cmp dword [eax], 3
jne 0x1001402d
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.100160a0
add esp, 0x18
cmp dword [esp + 0x38], esi
jge 0x1001419d
jmp 0x10014198
cmp eax, 0x80000004
jne 0x100140a9
mov eax, dword [edi]
test eax, eax
je 0x10014054
mov edx, dword [eax]
push edx
call fcn.1000fda0
add esp, 4
test ebp, ebp
mov dword [esp + 0x28], 0
jne 0x1001409c
cmp dword [esi], 3
jne 0x10014087
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
push esi
call fcn.10013760
mov ecx, dword [edi]
mov edx, dword [esp + 0x34]
add esp, 0xc
mov ebp, eax
mov dword [ecx], edx
jmp 0x1001419d
lea edx, [esp + 0x10]
lea eax, [esp + 0x28]
push edx
push eax
push ebx
call fcn.10013410
add esp, 0xc
mov ebp, eax
mov ecx, dword [edi]
mov edx, dword [esp + 0x28]
mov dword [ecx], edx
jmp 0x1001419d
cmp eax, 0x80000005
jne 0x10014116
mov eax, dword [edi]
test eax, eax
je 0x100140c1
mov eax, dword [eax]
push eax
call fcn.1000fda0
add esp, 4
test ebp, ebp
mov dword [esp + 0x2c], 0
jne 0x10014109
cmp dword [esi], 3
jne 0x100140f4
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2c]
push ecx
push edx
push esi
call fcn.10013a10
mov edx, dword [edi]
mov ebp, eax
mov eax, dword [esp + 0x38]
add esp, 0xc
mov dword [edx], eax
jmp 0x1001419d
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
push ecx
push ebx
call fcn.100135a0
add esp, 0xc
mov ebp, eax
mov edx, dword [edi]
mov eax, dword [esp + 0x2c]
mov dword [edx], eax
jmp 0x1001419d
push eax
call fcn.10016c20
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1001419d
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 0x1001419d
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 0x100141c9
mov eax, dword [esp + 0x18]
cmp dword [eax], 3
jne 0x10014192
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.100160a0
add esp, 0x18
cmp ebx, dword [esp + 0x3c]
jle 0x1001419d
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 0x10013e11
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