Function at 0x4065f5
Capabilities:
Get file size
Get file version info
Hash data using sha1
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446b98
mov eax, dword fs:[0]
push eax
mov eax, 0x80254
call fcn.00414060
mov eax, dword [0x462114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x80260], ebx
mov dword [ebp - 0x80244], ebx
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x80244], ebx
mov dword [ebp - 0x8025c], edi
mov dword [ebp - 0x80254], eax
mov dword [ebp - 0x80250], eax
mov dword [ebp - 4], eax
call fcn.00401507
push eax
lea ecx, [ebp - 0x8023c]
call fcn.004019ad
mov byte [ebp - 4], 1
call fcn.00401507
push eax
lea ecx, [ebp - 0x80258]
call fcn.004019ad
push esi
lea eax, [ebp - 0x8023c]
mov byte [ebp - 4], 2
push 0x4591bc
push eax
call fcn.00407a9b
xor eax, eax
add esp, 0xc
cmp dword [edi + 4], eax
je 0x406734
push eax
push esi
mov dword [ebp - 0x80240], eax
mov dword [ebp - 0x80244], 0x34
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x40672e
push ebx
call fcn.00413bd6
pop ecx
push eax
push ebx
push 0
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov ebx, dword [ebp - 0x18]
test eax, eax
je 0x406727
lea eax, [ebp - 0x80244]
push eax
lea eax, [ebp - 0x80240]
push eax
push 0x4593e0
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x406727
mov ecx, dword [ebp - 0x80240]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x80258]
push 0x4591d0
push eax
call fcn.00407a9b
add esp, 0x18
push ebx
call fcn.00413bd1
pop ecx
mov ebx, dword [ebp - 0x80260]
sub esp, 0xc
push 3
push ecx
push 0x80000000
push esi
lea ecx, [ebp - 0x80254]
call fcn.004054b5
test eax, eax
je 0x4067be
mov esi, 0x4591f8
mov ecx, esi
call fcn.00408d6a
push eax
push esi
lea ecx, [ebp - 0x8023c]
call fcn.00408528
push 0
push 0x64
push 0x500
push dword [edi]
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [ebp - 0x8023c]
lea ecx, [esi - 0x10]
call fcn.004085b4
mov ecx, dword [ebp - 0x80258]
add eax, 0x10
mov dword [ebx], eax
lea ecx, [ecx - 0x10]
call fcn.004014c3
lea ecx, [esi - 0x10]
call fcn.004014c3
cmp dword [ebp - 0x80254], 0
je 0x4067b7
push dword [ebp - 0x80254]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x406ce8
lea eax, [ebp - 0x80244]
push eax
push dword [ebp - 0x80254]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x80248], esi
cmp esi, 0xffffffff
jne 0x4067ed
call fcn.00408ec2
test eax, eax
js 0x406823
mov esi, dword [ebp - 0x80248]
mov ebx, dword [ebp - 0x80244]
cmp ebx, 0x100
jb 0x406831
ja 0x406801
test esi, esi
je 0x406831
mov edx, ebx
mov ecx, esi
call fcn.004143a0
mulsd xmm0, qword [0x4598b8]
push ecx
push ecx
movsd qword [esp], xmm0
push 0x45920c
jmp 0x4068b9
mov ebx, dword [ebp - 0x80250]
mov esi, dword [ebp - 0x80254]
jmp 0x4067f3
test ebx, ebx
jne 0x40689c
cmp esi, 0x40000000
ja 0x40689c
test ebx, ebx
jne 0x40687d
cmp esi, 0x100000
ja 0x40687d
test ebx, ebx
jne 0x40685e
cmp esi, 0x400
ja 0x40685e
push ebx
push esi
push 0x45928c
jmp 0x4068b9
mov edx, ebx
mov ecx, esi
call fcn.004143a0
mulsd xmm0, qword [0x4598d0]
push ecx
push ecx
movsd qword [esp], xmm0
push 0x45926c
jmp 0x4068b9
mov edx, ebx
mov ecx, esi
call fcn.004143a0
mulsd xmm0, qword [0x4598c8]
push ecx
push ecx
movsd qword [esp], xmm0
push 0x45924c
jmp 0x4068b9
mov edx, ebx
mov ecx, esi
call fcn.004143a0
mulsd xmm0, qword [0x4598c0]
push ecx
push ecx
movsd qword [esp], xmm0
push 0x45922c
lea eax, [ebp - 0x8023c]
push eax
call fcn.00407af0
add esp, 0x10
cmp dword [edi + 4], 0
je 0x4068e3
mov eax, dword [ebp - 0x80258]
lea ecx, [ebp - 0x8023c]
push dword [eax - 0xc]
push eax
call fcn.00408528
cmp dword [edi + 8], 0
je 0x406959
lea eax, [ebp - 0x80248]
push eax
push 0
push 0
push dword [ebp - 0x80254]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x406959
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x80248]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1c]
add eax, 8
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x24]
push eax
lea eax, [ebp - 0x8023c]
push 0x4592a8
push eax
call fcn.00407af0
mov edi, dword [ebp - 0x8025c]
add esp, 0x20
lea ecx, [ebp - 0x80238]
call fcn.00402cfe
and dword [ebp - 0x80240], 0
xorps xmm0, xmm0
cmp dword [edi + 0x10], 0
movlpd qword [ebp - 0x1c], xmm0
je 0x4069b3
movlpd qword [ebp - 0x80088], xmm0
mov dword [ebp - 0x80080], 0x67452301
mov dword [ebp - 0x8007c], 0xefcdab89
mov dword [ebp - 0x80078], 0x98badcfe
mov dword [ebp - 0x80074], 0x10325476
mov dword [ebp - 0x80070], 0xc3d2e1f0
push 0x80000
lea eax, [ebp - 0x80050]
push 0
push eax
call fcn.00418ba0
mov eax, dword [ebp - 0x18]
add esp, 0xc
and dword [ebp - 0x8024c], 0
mov dword [ebp - 0x80244], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x8024c]
push eax
push 0x80000
lea eax, [ebp - 0x80050]
push eax
push dword [ebp - 0x80254]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406a0b
call fcn.00408ec2
jmp 0x406a0d
xor eax, eax
test eax, eax
jne 0x406b1d
mov eax, dword [ebp - 0x8024c]
test eax, eax
je 0x406b1d
cmp dword [edi + 0xc], 0
je 0x406a77
and dword [ebp - 0x80058], 0
lea ecx, [ebp - 0x80068]
push eax
lea eax, [ebp - 0x80050]
mov dword [ebp - 0x80054], 0xf
push eax
mov byte [ebp - 0x80068], 0
call fcn.0040442f
lea eax, [ebp - 0x80068]
push eax
lea ecx, [ebp - 0x80238]
call fcn.00402d25
lea ecx, [ebp - 0x80068]
call fcn.00404991
mov eax, dword [ebp - 0x8024c]
cmp dword [edi + 0x10], 0
je 0x406a90
push eax
lea edx, [ebp - 0x80050]
lea ecx, [ebp - 0x800c8]
call fcn.00404c34
pop ecx
cmp dword [edi + 0x14], 0
je 0x406ab4
push dword [ebp - 0x8024c]
mov ecx, dword [ebp - 0x80240]
lea edx, [ebp - 0x80050]
call fcn.00402ba6
pop ecx
mov dword [ebp - 0x80240], eax
push 0x80000
lea eax, [ebp - 0x80050]
push 0
push eax
call fcn.00418ba0
mov eax, dword [ebp - 0x18]
add esp, 0xc
add eax, dword [ebp - 0x8024c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x80244]
push 0x64
pop ecx
adc eax, 0
mov dword [ebp - 0x80244], eax
mul ecx
push 0x64
pop edx
mov ecx, eax
mov eax, dword [ebp - 0x18]
mul edx
push ebx
push esi
add ecx, edx
push ecx
push eax
call fcn.00444a30
push 0x64
pop ecx
inc eax
cmp eax, ecx
push 0
cmovg eax, ecx
push eax
push 0x500
push dword [edi]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4069df
xor ebx, ebx
cmp dword [edi + 0xc], ebx
je 0x406ba3
lea eax, [ebp - 0x80068]
push eax
lea ecx, [ebp - 0x80238]
call fcn.004035bc
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x406b42
mov eax, dword [eax]
lea ecx, [ebp - 0x801c8]
push 3
mov dword [ebp - 0x801cc], ecx
lea ecx, [ebp - 0x801cc]
push eax
call fcn.0040798a
mov byte [ebp - 4], 4
lea eax, [ebp - 0x8023c]
push dword [ebp - 0x801cc]
push str.MD5
push eax
call fcn.00407af0
lea eax, [ebp - 0x801c8]
add esp, 0xc
cmp dword [ebp - 0x801cc], eax
je 0x406b94
push dword [ebp - 0x801cc]
call fcn.0041adf7
pop ecx
lea ecx, [ebp - 0x80068]
mov byte [ebp - 4], 2
call fcn.00404991
cmp dword [edi + 0x10], ebx
je 0x406c6a
lea edx, [ebp - 0x80064]
lea ecx, [ebp - 0x800c8]
call fcn.00404cde
mov esi, str.0123456789ABCDEF
lea edi, [ebp - 0x24]
push 0x29
lea eax, [ebp - 0x50]
push ebx
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, ebx
mov esi, ebx
call fcn.00418ba0
add esp, 0xc
cmp esi, 0x29
jae 0x406c0b
movzx ecx, byte [ebp + edi - 0x80064]
mov eax, ecx
and ecx, 0xf
shr eax, 4
inc edi
mov al, byte [ebp + eax - 0x24]
mov byte [ebp + esi - 0x50], al
mov al, byte [ebp + ecx - 0x24]
mov byte [ebp + esi - 0x4f], al
add esi, 2
cmp edi, 0x14
jb 0x406bdd
lea eax, [ebp - 0x801c8]
mov dword [ebp - 0x801cc], eax
lea ecx, [ebp - 0x801cc]
push 3
lea eax, [ebp - 0x50]
push eax
call fcn.0040798a
mov byte [ebp - 4], 5
lea eax, [ebp - 0x8023c]
push dword [ebp - 0x801cc]
push 0x459310
push eax
call fcn.00407af0
lea eax, [ebp - 0x801c8]
mov byte [ebp - 4], 2
add esp, 0xc
cmp dword [ebp - 0x801cc], eax
je 0x406c64
push dword [ebp - 0x801cc]
call fcn.0041adf7
pop ecx
mov edi, dword [ebp - 0x8025c]
cmp dword [edi + 0x14], ebx
je 0x406c89
push dword [ebp - 0x80240]
lea eax, [ebp - 0x8023c]
push 0x45932c
push eax
call fcn.00407af0
add esp, 0xc
mov esi, 0x459348
mov ecx, esi
call fcn.00408d6a
push eax
push esi
lea ecx, [ebp - 0x8023c]
call fcn.00408528
mov esi, dword [ebp - 0x8023c]
lea ecx, [esi - 0x10]
call fcn.004085b4
mov ecx, dword [ebp - 0x80258]
add eax, 0x10
mov edi, dword [ebp - 0x80260]
lea ecx, [ecx - 0x10]
mov dword [edi], eax
call fcn.004014c3
lea ecx, [esi - 0x10]
call fcn.004014c3
cmp dword [ebp - 0x80254], 0
je 0x406ce6
push dword [ebp - 0x80254]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041345a
leave
ret