Function at 0x4291d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x4d03b4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 8]
push esi
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x50], eax
je 0x4296ba
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp - 0x58]
push edi
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], edx
nop
mov eax, dword [ecx + 0x10]
xorps xmm0, xmm0
mov ecx, dword [ecx + 0x14]
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
cmp esi, ecx
jb 0x429461
ja 0x429236
cmp edx, eax
jb 0x429461
mov eax, dword [ebp - 0x60]
cmp esi, dword [eax + 0x1c]
ja 0x429461
jb 0x42924d
cmp edx, dword [eax + 0x18]
ja 0x429461
movzx esi, word [eax + 0x20]
add esi, eax
mov dword [ebp - 0x2c], esi
mov dl, byte [esi]
mov byte [ebp - 0x2d], dl
test dl, dl
je 0x429461
mov ecx, dword [ebp - 0x3c]
mov al, dl
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x40]
mov byte [ebp - 0x21], al
mov dword [ebp - 0x28], ecx
mov bl, al
mov bh, al
shr bl, 4
and bh, 0xf
test bl, bl
jne 0x429286
xor eax, eax
jmp 0x429292
movzx eax, bh
movzx ecx, bl
add ecx, eax
movsx eax, byte [ecx + esi]
cdq
movzx ecx, bl
mov esi, eax
movzx eax, bh
dec ecx
add ecx, eax
mov dword [ebp - 0x54], eax
mov edi, edx
cmp ecx, eax
jle 0x4292cd
mov ebx, dword [ebp - 0x2c]
nop word [eax + eax]
movzx eax, byte [ecx + ebx]
shld edi, esi, 8
cdq
shl esi, 8
add eax, esi
mov esi, eax
adc edi, edx
dec ecx
cmp ecx, dword [ebp - 0x54]
jg 0x4292b0
mov al, byte [ebp - 0x2d]
jmp 0x4292d0
mov al, byte [ebp - 0x21]
add dword [ebp - 0x28], esi
xorps xmm0, xmm0
movzx edx, al
adc dword [ebp - 0x20], edi
mov eax, edx
movlpd qword [ebp - 0x5c], xmm0
and eax, 0xf
mov ebx, dword [ebp - 0x58]
mov ecx, eax
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x3c], eax
jbe 0x429318
mov esi, dword [ebp - 0x2c]
nop dword [eax]
movzx eax, byte [ecx + esi]
shld ebx, edi, 8
cdq
shl edi, 8
add edi, eax
adc ebx, edx
sub ecx, 1
jne 0x429300
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
add eax, edi
mov esi, dword [ebp - 0x4c]
adc ecx, ebx
cmp dword [ebp - 0x34], esi
mov esi, dword [ebp - 0x2c]
ja 0x42934e
jb 0x42933a
mov esi, dword [ebp - 0x48]
cmp dword [ebp - 0x38], esi
mov esi, dword [ebp - 0x2c]
ja 0x42934e
cmp dword [ebp - 0x4c], ecx
jb 0x42940e
ja 0x42934e
cmp dword [ebp - 0x48], eax
jb 0x42940e
shr edx, 4
inc esi
add edx, dword [ebp - 0x3c]
add esi, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], esi
mov dl, byte [esi]
mov byte [ebp - 0x2d], dl
mov al, dl
mov byte [ebp - 0x21], al
test dl, dl
jne 0x429274
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x44]
mov esi, dword [edx + 0x30]
test esi, esi
je 0x4293b1
cmp eax, dword [edx + 0x24]
jb 0x4293b1
ja 0x42938e
cmp ecx, dword [edx + 0x20]
jb 0x4293b1
mov eax, dword [edx + 0x28]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 0x2c]
adc eax, dword [edx + 0x24]
cmp dword [ebp - 0x20], eax
jb 0x429559
ja 0x4293b1
cmp ecx, dword [ebp - 0x3c]
jb 0x429559
cmp byte [ebp + 0x1c], 0
je 0x429559
mov eax, dword [ebp - 0x20]
cmp eax, dword [edx + 0x24]
jb 0x429559
ja 0x4293d2
cmp ecx, dword [edx + 0x20]
jb 0x429559
test esi, esi
je 0x4293e9
push esi
call fcn.0045657c
mov edx, dword [ebp - 0x44]
add esp, 4
mov dword [edx + 0x30], 0
mov esi, dword [edx + 0x38]
mov eax, esi
mov ecx, dword [edx + 0x3c]
or eax, ecx
jne 0x429492
test ebx, ebx
ja 0x429472
jb 0x429407
cmp edi, 0xfa0
ja 0x429472
mov esi, edi
mov dword [ebp - 0x2c], ebx
jmp 0x42947e
push esi
call fcn.0042a030
add esp, 4
or eax, edx
jne 0x42943f
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x38]
sub edi, eax
sbb ebx, 0
jmp 0x429372
mov ecx, dword [ebp - 0x48]
sub ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x4c]
sbb eax, dword [ebp - 0x34]
add dword [ebp - 0x28], ecx
adc dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x38]
sub edi, eax
sbb ebx, 0
jmp 0x429372
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], ecx
jmp 0x429378
mov esi, 0xfa0
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x38], ecx
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], edi
mov dword [edx + 0x44], ebx
jmp 0x429509
add esi, dword [edx + 0x40]
mov eax, dword [ebp - 0x28]
adc ecx, dword [edx + 0x44]
cmp dword [ebp - 0x20], ecx
jb 0x4294e7
ja 0x4294a6
cmp eax, esi
jbe 0x4294e7
test ebx, ebx
ja 0x4294ca
jb 0x4294b4
cmp edi, 0xfa0
ja 0x4294ca
mov dword [edx + 0x38], eax
mov esi, edi
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ebx
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], edi
mov dword [edx + 0x44], ebx
jmp 0x429509
mov dword [edx + 0x38], eax
mov esi, 0xfa0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], 0
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], edi
mov dword [edx + 0x44], ebx
jmp 0x429509
sub esi, eax
sbb ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
ja 0x4294fd
jb 0x429509
cmp esi, 0xfa0
jbe 0x429509
mov esi, 0xfa0
mov dword [ebp - 0x2c], 0
mov eax, dword [edx + 0x48]
push 0x52568a
movzx ecx, byte [eax + 0xd]
movzx eax, word [eax + 0xb]
imul ecx, eax
imul ecx, esi
push ecx
call fcn.0045677c
add esp, 8
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x429559
mov edx, dword [ebp - 0x44]
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x28]
push esi
push dword [ebp - 0x20]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x20], ecx
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 0x2c]
push ecx
mov ecx, edx
mov dword [edx + 0x28], esi
mov dword [edx + 0x2c], eax
call fcn.004296d0
mov eax, dword [ebp + 0x14]
sub esp, 8
mov edx, ebx
mov ecx, edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4aac20]
movsd qword [esp], xmm0
call fcn.00456510
sub esp, 8
movsd qword [esp], xmm0
call fcn.0047fff8
add esp, 0x10
fstp qword [ebp - 0x5c]
movsd xmm0, qword [ebp - 0x5c]
call fcn.004563e1
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x54], eax
mov ecx, dword [edx + 0x48]
mov dl, byte [ecx + 0xd]
movzx ecx, word [ecx + 0xb]
movzx esi, dl
mov dword [ebp - 0x38], esi
movzx esi, cx
imul esi, dword [ebp - 0x38]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 0x21], dl
mov edx, dword [ebp - 0x44]
imul esi, eax
mov eax, ecx
or eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], esi
jne 0x4295e7
push esi
push 0
push dword [ebp - 0x50]
call fcn.004781a0
add esp, 0xc
jmp 0x429697
cmp dword [edx + 0x30], 0
je 0x429640
mov esi, dword [edx + 0x24]
mov eax, dword [edx + 0x20]
cmp dword [ebp - 0x20], esi
jb 0x429640
ja 0x4295fe
cmp ecx, eax
jb 0x429640
mov esi, dword [edx + 0x28]
add esi, eax
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0x3c], esi
adc eax, dword [edx + 0x24]
mov esi, dword [ebp - 0x34]
cmp dword [ebp - 0x20], eax
ja 0x429640
jb 0x42961b
cmp ecx, dword [ebp - 0x3c]
jae 0x429640
sub ecx, dword [edx + 0x20]
push esi
mov esi, dword [ebp - 0x2c]
movzx eax, si
imul ecx, eax
imul ecx, dword [ebp - 0x38]
add ecx, dword [edx + 0x30]
push ecx
push dword [ebp - 0x50]
call fcn.004776a0
mov esi, dword [ebp - 0x34]
add esp, 0xc
jmp 0x429697
mov eax, dword [ebp - 0x2c]
xorps xmm0, xmm0
movzx eax, ax
cdq
mov esi, eax
movlpd qword [ebp - 0x1c], xmm0
movzx eax, byte [ebp - 0x21]
mov ecx, edx
cdq
push edx
push eax
push ecx
push esi
mov dword [ebp - 0xc], 0
call fcn.00456b80
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
push ecx
push edx
push eax
call fcn.00456b80
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x44]
push eax
push esi
push dword [ebp - 0x50]
push dword [edx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x54]
add edx, eax
mov ecx, dword [ebp - 0x60]
adc dword [ebp - 0x4c], 0
add dword [ebp - 0x50], esi
sub dword [ebp + 0x14], eax
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x48], edx
jne 0x429210
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00456178
mov esp, ebp
pop ebp
ret 0x18