Function at 0xc35ae00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x34
push esi
mov esi, dword [esp + 0x40]
push edi
xor edi, edi
cmp esi, edi
jne 0xc35ae17
pop edi
xor eax, eax
pop esi
add esp, 0x34
ret
push esi
call fcn.0c35ca40
add esp, 4
test eax, eax
jne 0xc35ae2a
pop edi
pop esi
add esp, 0x34
ret
push ebx
mov dword [esp + 0xc], edi
mov eax, dword [esi]
push ebp
mov ecx, 1
xor ebp, ebp
cmp eax, ecx
mov dword [esp + 0x14], ebp
jne 0xc35b11d
mov eax, dword [esp + 0x48]
mov esi, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], ecx
jle 0xc35b392
lea ebx, [esp + 0x58]
mov dword [esp + 0x14], ebx
jmp 0xc35ae70
mov esi, dword [esp + 0x18]
xor edi, edi
cmp dword [esp + 0x10], edi
je 0xc35b392
mov eax, dword [ebx + 8]
mov ecx, eax
and ecx, 0x20000000
cmp ecx, 0x20000000
jne 0xc35b011
and eax, 0xdfffffff
mov dword [ebx + 8], eax
mov ecx, dword [ebx]
cmp ecx, edi
je 0xc35b0e1
cmp eax, 0x80000004
jne 0xc35af21
mov eax, dword [ecx]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.0c35c4f0
mov ecx, dword [esp + 0x28]
add esp, 8
xor edi, edi
test ecx, ecx
jbe 0xc35b0e1
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0xc35aed9
push eax
call fcn.0c3597d0
add esp, 4
test ebp, ebp
mov dword [esp + 0x1c], 0
jne 0xc35aefe
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
call fcn.0c35aab0
add esp, 0xc
mov ebp, eax
mov ecx, dword [esp + 0x1c]
mov dword [esi], ecx
mov eax, dword [esp + 0x10]
test eax, eax
je 0xc35b0e1
mov eax, dword [esp + 0x20]
inc edi
add esi, 4
cmp edi, eax
jb 0xc35aeca
jmp 0xc35b0e1
cmp eax, 0x80000005
jne 0xc35af9d
lea edx, [esp + 0x28]
push edx
push ecx
call fcn.0c35c4f0
mov ecx, dword [esp + 0x30]
add esp, 8
xor edi, edi
test ecx, ecx
jbe 0xc35b0e1
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0xc35af55
push eax
call fcn.0c3597d0
add esp, 4
test ebp, ebp
mov dword [esp + 0x24], 0
jne 0xc35af7a
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push ecx
push edx
call fcn.0c35ac40
add esp, 0xc
mov ebp, eax
mov eax, dword [esp + 0x24]
mov dword [esi], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0xc35b0e1
mov eax, dword [esp + 0x28]
inc edi
add esi, 4
cmp edi, eax
jb 0xc35af46
jmp 0xc35b0e1
push eax
call fcn.0c35ca70
mov edi, eax
add esp, 4
test edi, edi
je 0xc35b0e1
mov edx, dword [ebx]
lea ecx, [esp + 0x38]
push ecx
mov eax, dword [edx]
push eax
call fcn.0c35c4f0
mov esi, dword [esp + 0x40]
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 0xc35b0dd
lea ecx, [esp + 0x3c]
push ebp
push ecx
push esi
push edx
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xc35b109
cmp dword [esp + 0x3c], esi
jae 0xc35b0dd
jmp 0xc35b0d8
cmp eax, 0x80000004
jne 0xc35b053
mov eax, dword [ebx]
cmp eax, edi
je 0xc35b029
mov eax, dword [eax]
push eax
call fcn.0c3597d0
add esp, 4
cmp ebp, edi
mov dword [esp + 0x2c], edi
jne 0xc35b046
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2c]
push ecx
push edx
push esi
call fcn.0c35aab0
add esp, 0xc
mov ebp, eax
mov eax, dword [ebx]
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
jmp 0xc35b0e1
cmp eax, 0x80000005
jne 0xc35b092
mov eax, dword [ebx]
cmp eax, edi
je 0xc35b06b
mov edx, dword [eax]
push edx
call fcn.0c3597d0
add esp, 4
cmp ebp, edi
mov dword [esp + 0x30], edi
jne 0xc35b088
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
push ecx
push esi
call fcn.0c35ac40
add esp, 0xc
mov ebp, eax
mov edx, dword [ebx]
mov eax, dword [esp + 0x30]
mov dword [edx], eax
jmp 0xc35b0e1
push eax
call fcn.0c35ca70
mov esi, eax
add esp, 4
cmp esi, edi
je 0xc35b0e1
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 0xc35b0dd
lea ecx, [esp + 0x40]
push ebp
push ecx
push esi
push edx
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xc35b109
cmp esi, dword [esp + 0x40]
jbe 0xc35b0dd
mov ebp, 1
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x48]
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], ebx
jl 0xc35ae6a
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x34
ret
pop ebp
pop ebx
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x34
ret
cmp eax, 2
jne 0xc35b392
mov eax, dword [esi + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
cmp eax, ecx
jle 0xc35b392
dec eax
lea ebx, [esp + 0x58]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 8]
mov ecx, eax
and ecx, 0x20000000
cmp ecx, 0x20000000
jne 0xc35b2ac
and eax, 0xdfffffff
mov dword [ebx + 8], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0xc35b380
cmp eax, 0x80000004
jne 0xc35b1dc
mov eax, dword [ecx]
lea edx, [esp + 0x34]
push edx
push eax
call fcn.0c35c4f0
mov ecx, dword [esp + 0x3c]
add esp, 8
xor edi, edi
test ecx, ecx
jbe 0xc35b380
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0xc35b1a5
push eax
call fcn.0c3597d0
add esp, 4
test ebp, ebp
mov dword [esp + 0x48], 0
jne 0xc35b1c5
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x48]
push ecx
push edx
call fcn.0c35ace0
add esp, 8
mov ebp, eax
mov eax, dword [esp + 0x48]
inc edi
mov dword [esi], eax
mov eax, dword [esp + 0x34]
add esi, 4
cmp edi, eax
jb 0xc35b196
jmp 0xc35b37c
cmp eax, 0x80000005
jne 0xc35b246
lea edx, [esp + 0x2c]
push edx
push ecx
call fcn.0c35c4f0
mov eax, dword [esp + 0x34]
add esp, 8
xor esi, esi
test eax, eax
jbe 0xc35b380
mov edi, dword [esp + 0x18]
mov eax, dword [ebx]
test eax, eax
je 0xc35b214
mov eax, dword [eax]
push eax
call fcn.0c3597d0
add esp, 4
test ebp, ebp
mov dword [esp + 0x30], 0
jne 0xc35b230
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.0c35ad80
add esp, 8
mov ebp, eax
mov edx, dword [ebx]
mov eax, dword [esp + 0x30]
inc esi
mov dword [edx], eax
mov eax, dword [esp + 0x2c]
cmp esi, eax
jb 0xc35b203
jmp 0xc35b37c
push eax
call fcn.0c35ca70
mov edi, eax
add esp, 4
test edi, edi
je 0xc35b380
mov edx, dword [ebx]
lea ecx, [esp + 0x40]
push ecx
mov eax, dword [edx]
push eax
call fcn.0c35c4f0
mov esi, dword [esp + 0x48]
mov edx, eax
imul esi, edi
mov ecx, esi
xor eax, eax
mov ebp, ecx
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
mov ebp, dword [esp + 0x1c]
add esp, 8
and ecx, 3
test ebp, ebp
rep stosb byte es:[edi], al
jne 0xc35b380
mov ecx, dword [esp + 0x18]
push esi
push edx
mov eax, dword [ecx]
call dword [eax + 0x20]
cmp esi, eax
jbe 0xc35b380
jmp 0xc35b377
cmp eax, 0x80000004
jne 0xc35b2f5
mov eax, dword [ebx]
test eax, eax
je 0xc35b2c4
mov ecx, dword [eax]
push ecx
call fcn.0c3597d0
add esp, 4
test ebp, ebp
mov dword [esp + 0x28], 0
jne 0xc35b2e8
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
push eax
call fcn.0c35ace0
mov ebp, eax
add esp, 8
mov dword [esp + 0x14], ebp
mov ecx, dword [ebx]
mov edx, dword [esp + 0x28]
mov dword [ecx], edx
jmp 0xc35b380
cmp eax, 0x80000005
jne 0xc35b33b
mov eax, dword [ebx]
test eax, eax
je 0xc35b30d
mov eax, dword [eax]
push eax
call fcn.0c3597d0
add esp, 4
test ebp, ebp
mov dword [esp + 0x24], 0
jne 0xc35b331
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.0c35ad80
mov ebp, eax
add esp, 8
mov dword [esp + 0x14], ebp
mov eax, dword [ebx]
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
jmp 0xc35b380
push eax
call fcn.0c35ca70
mov esi, eax
add esp, 4
test esi, esi
je 0xc35b380
mov edx, dword [ebx]
mov ecx, esi
mov ebp, ecx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
mov ebp, dword [esp + 0x14]
and ecx, 3
test ebp, ebp
rep stosb byte es:[edi], al
jne 0xc35b380
mov ecx, dword [esp + 0x18]
push esi
push edx
mov eax, dword [ecx]
call dword [eax + 0x20]
cmp esi, eax
jbe 0xc35b380
mov ebp, 1
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x20]
add ebx, 0xc
dec eax
mov dword [esp + 0x20], eax
jne 0xc35b146
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x34
ret