Function at 0x417520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
push ebx
push esi
push edi
lea edi, [ebp - 0x174]
mov ecx, 0x5d
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x434d40]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x4380d6
call fcn.0041169a
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x70], xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x80], xmm0
mov dword [ebp - 0x8c], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x170], ecx
cmp dword [ebp - 0x174], 0x14
jne 0x4175b4
cmp dword [ebp - 0x170], 0
je 0x4175cb
cmp dword [ebp - 0x174], 0x32
jne 0x4175c6
cmp dword [ebp - 0x170], 0
je 0x41762b
jmp 0x417668
mov eax, dword [ebp + 8]
push 0
push 0x64
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [eax + 0x10]
push edx
call fcn.004110e6
push 0
push 7
push edx
push eax
call fcn.0041157d
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x8c], 3
push 0
push 3
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.0041157d
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0x10]
sub esi, eax
mov eax, dword [ecx + 0x14]
sbb eax, edx
push 0
push 2
push eax
push esi
call fcn.004110e6
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
jmp 0x41766f
mov eax, dword [ebp + 8]
push 0
push 0x64
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [eax + 0x10]
push edx
call fcn.004110e6
push 0
push 0xa
push edx
push eax
call fcn.0041157d
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x8c], 5
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x7c], ecx
jmp 0x41766f
xor eax, eax
jmp 0x41782f
mov dword [ebp - 0x98], 0
jmp 0x41768a
mov eax, dword [ebp - 0x98]
add eax, 1
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebp - 0x8c]
jge 0x41782a
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x98], 0
je 0x4176f0
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x5c], ecx
mov esi, esp
push 1
push 0
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp esi, esp
call fcn.004116a9
test eax, eax
jne 0x4176f0
jmp 0x41782a
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x4c]
jg 0x417825
jl 0x41770a
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [ebp - 0x50]
jae 0x417825
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x4c]
sbb ecx, dword [ebp - 0x3c]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], ecx
cmp dword [ebp - 0xa4], 0
jl 0x417745
jg 0x417739
cmp dword [ebp - 0xa8], 0x500000
jbe 0x417745
mov dword [ebp - 0x170], 0x500000
jmp 0x417751
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x24], ecx
mov esi, esp
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.004116a9
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41778d
cmp dword [ebp - 0x18], 0
jne 0x417792
jmp 0x417825
mov eax, dword [ebp - 0x18]
xor ecx, ecx
add eax, dword [ebp - 0x40]
adc ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
add eax, 0x44
push eax
call fcn.0041163b
add esp, 0x10
mov eax, dword [ebp - 0x18]
xor ecx, ecx
neg eax
adc ecx, 0
neg ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ecx
mov esi, esp
push 1
push 0
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp esi, esp
call fcn.004116a9
test eax, eax
jne 0x4177fe
jmp 0x417825
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call fcn.00417d40
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x417820
jmp 0x417825
jmp 0x4176f0
jmp 0x41767b
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x417860]
call fcn.00411703
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004115f0
add esp, 0x174
cmp ebp, esp
call fcn.004116a9
mov esp, ebp
pop ebp
ret