Function at 0x41fa40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x4d9180]
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 0x41ff2a
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 0x41fcd1
ja 0x41faa6
cmp edx, eax
jb 0x41fcd1
mov eax, dword [ebp - 0x60]
cmp esi, dword [eax + 0x1c]
ja 0x41fcd1
jb 0x41fabd
cmp edx, dword [eax + 0x18]
ja 0x41fcd1
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 0x41fcd1
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 0x41faf6
xor eax, eax
jmp 0x41fb02
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 0x41fb3d
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 0x41fb20
mov al, byte [ebp - 0x2d]
jmp 0x41fb40
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 0x41fb88
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 0x41fb70
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 0x41fbbe
jb 0x41fbaa
mov esi, dword [ebp - 0x48]
cmp dword [ebp - 0x38], esi
mov esi, dword [ebp - 0x2c]
ja 0x41fbbe
cmp dword [ebp - 0x4c], ecx
jb 0x41fc7e
ja 0x41fbbe
cmp dword [ebp - 0x48], eax
jb 0x41fc7e
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 0x41fae4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x44]
mov esi, dword [edx + 0x30]
test esi, esi
je 0x41fc21
cmp eax, dword [edx + 0x24]
jb 0x41fc21
ja 0x41fbfe
cmp ecx, dword [edx + 0x20]
jb 0x41fc21
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 0x41fdc9
ja 0x41fc21
cmp ecx, dword [ebp - 0x3c]
jb 0x41fdc9
cmp byte [ebp + 0x1c], 0
je 0x41fdc9
mov eax, dword [ebp - 0x20]
cmp eax, dword [edx + 0x24]
jb 0x41fdc9
ja 0x41fc42
cmp ecx, dword [edx + 0x20]
jb 0x41fdc9
test esi, esi
je 0x41fc59
push esi
call fcn.00439e51
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 0x41fd02
test ebx, ebx
ja 0x41fce2
jb 0x41fc77
cmp edi, 0xfa0
ja 0x41fce2
mov esi, edi
mov dword [ebp - 0x2c], ebx
jmp 0x41fcee
push esi
call fcn.00420740
add esp, 4
or eax, edx
jne 0x41fcaf
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 0x41fbe2
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 0x41fbe2
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], ecx
jmp 0x41fbe8
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 0x41fd79
add esi, dword [edx + 0x40]
mov eax, dword [ebp - 0x28]
adc ecx, dword [edx + 0x44]
cmp dword [ebp - 0x20], ecx
jb 0x41fd57
ja 0x41fd16
cmp eax, esi
jbe 0x41fd57
test ebx, ebx
ja 0x41fd3a
jb 0x41fd24
cmp edi, 0xfa0
ja 0x41fd3a
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 0x41fd79
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 0x41fd79
sub esi, eax
sbb ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
ja 0x41fd6d
jb 0x41fd79
cmp esi, 0xfa0
jbe 0x41fd79
mov esi, 0xfa0
mov dword [ebp - 0x2c], 0
mov eax, dword [edx + 0x48]
push 0x4df1a0
movzx ecx, byte [eax + 0xd]
movzx eax, word [eax + 0xb]
imul ecx, eax
imul ecx, esi
push ecx
call fcn.0043a2e6
add esp, 8
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x41fdc9
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.00420060
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 + 0x4b22b0]
movsd qword [esp], xmm0
call fcn.0043a600
sub esp, 8
movsd qword [esp], xmm0
call fcn.0047d155
add esp, 0x10
fstp qword [ebp - 0x5c]
movsd xmm0, qword [ebp - 0x5c]
call fcn.0043a4d1
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 0x41fe57
push esi
push 0
push dword [ebp - 0x50]
call fcn.00475800
add esp, 0xc
jmp 0x41ff07
cmp dword [edx + 0x30], 0
je 0x41feb0
mov esi, dword [edx + 0x24]
mov eax, dword [edx + 0x20]
cmp dword [ebp - 0x20], esi
jb 0x41feb0
ja 0x41fe6e
cmp ecx, eax
jb 0x41feb0
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 0x41feb0
jb 0x41fe8b
cmp ecx, dword [ebp - 0x3c]
jae 0x41feb0
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.00474d00
mov esi, dword [ebp - 0x34]
add esp, 0xc
jmp 0x41ff07
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.0043a140
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
push ecx
push edx
push eax
call fcn.0043a140
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 0x41fa80
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043a0f2
mov esp, ebp
pop ebp
ret 0x18