Function at 0x405f30
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x54e731
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, 0x1134
call fcn.00527c00
mov eax, dword [0x5b0630]
xor eax, esp
mov dword [esp + 0x1130], eax
push ebx
push esi
push edi
mov eax, dword [0x5b0630]
xor eax, esp
push eax
lea eax, [esp + 0x1178]
mov dword fs:[0], eax
mov esi, dword [0x5b8864]
mov edi, ecx
mov ecx, dword [0x5b8868]
mov edx, ecx
sub edx, esi
mov eax, 0x2e8ba2e9
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x58], edi
jne 0x405fb1
call fcn.00524192
mov ecx, dword [0x5b8868]
mov esi, dword [0x5b8864]
mov edx, dword [esi + 0x1c]
sub ecx, esi
mov dword [esp + 0x4c], edx
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov eax, edx
xor ebx, ebx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x50], ebx
jne 0x405fde
call fcn.00524192
mov esi, dword [0x5b8864]
push 0xffffffffffffffff
push ebx
add esi, 0x3c
push esi
lea ecx, [esp + 0xbc]
mov dword [esp + 0xd4], 0xf
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], bl
call fcn.0040a660
mov dword [esp + 0x1180], ebx
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], 0
mov byte [esp + 0x1180], 1
cmp dword [edi + 0x394], 8
jb 0x406044
mov eax, dword [edi + 0x380]
jmp 0x40604a
lea eax, [edi + 0x380]
push 0x589388
push eax
call fcn.00529763
mov esi, eax
add esp, 8
mov dword [esp + 0x54], esi
cmp esi, ebx
jne 0x40607a
push 0x589690
push 0x66
mov ecx, edi
call fcn.004066c0
mov edi, 0x10
jmp 0x4062cd
mov ecx, dword [edi + 0x374]
mov edx, dword [edi + 0x370]
push ebx
push ecx
push edx
push esi
mov byte [esp + 0x144], 0
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xec], ebx
mov dword [esp + 0xdc], 0x67452301
mov dword [esp + 0xe0], 0xefcdab89
mov dword [esp + 0xe4], 0x98badcfe
mov dword [esp + 0xe8], 0x10325476
call fcn.00529bc6
add esp, 0x10
test eax, eax
je 0x4060f9
push esi
call fcn.00529aae
add esp, 4
push 0x5896a0
push 0x67
mov ecx, edi
call fcn.004066c0
mov edi, 0x10
jmp 0x4062cd
push 0xfff
lea eax, [esp + 0x141]
push ebx
push eax
mov byte [esp + 0x148], 0
call fcn.00523d70
add esp, 0xc
push esi
push 0x1000
lea ecx, [esp + 0x144]
push 1
push ecx
xor edi, edi
call fcn.00529a1a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x406214
fild qword [esp + 0x4c]
fstp qword [esp + 0x6c]
mov eax, esi
cdq
add edi, eax
adc ebx, edx
lea edx, [esp + 0x13c]
push edx
mov eax, esi
lea ecx, [esp + 0xd0]
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], ebx
call fcn.00417140
push 0
push 0
call fcn.00402450
fild qword [esp + 0x64]
push 0
push 0
fmul qword [0x590770]
fdiv qword [esp + 0x7c]
fstp qword [esp + 0x74]
call fcn.00402450
add esp, 0x10
cmp dword [eax + 0x50], 0
je 0x4061ad
push 0
push 0
call fcn.00402450
fld qword [esp + 0x6c]
mov eax, dword [eax + 0x50]
fstp qword [esp]
call eax
add esp, 8
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov ecx, edx
sub ecx, edi
sbb eax, ebx
test eax, eax
jg 0x4061cf
jl 0x4061c9
cmp ecx, 0x1000
jae 0x4061cf
mov esi, edx
sub esi, edi
jmp 0x4061db
cmp dword [esp + 0x50], ebx
jl 0x406214
jg 0x4061db
cmp edx, edi
jbe 0x406214
push 0x1000
lea ecx, [esp + 0x140]
push 0
push ecx
call fcn.00523d70
mov edx, dword [esp + 0x60]
add esp, 0xc
push edx
push esi
lea eax, [esp + 0x144]
push 1
push eax
call fcn.00529a1a
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x406143
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00529aae
add esp, 4
lea edi, [esp + 0x78]
lea eax, [esp + 0xcc]
call fcn.00417ab0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xa0]
mov byte [esp + 0x118c], 2
call fcn.0040a660
mov edi, 0x10
mov byte [esp + 0x1180], 1
cmp dword [esp + 0x90], edi
jb 0x40626d
mov edx, dword [esp + 0x7c]
push edx
call fcn.00450c1b
add esp, 4
mov ecx, dword [esp + 0x98]
cmp dword [esp + 0xac], edi
jae 0x406284
lea ecx, [esp + 0x98]
mov eax, dword [esp + 0xb4]
cmp dword [esp + 0xc8], edi
jae 0x40629b
lea eax, [esp + 0xb4]
push ecx
push eax
call fcn.00529d23
add esp, 8
test eax, eax
je 0x40631d
mov esi, dword [esp + 0x58]
push esi
mov eax, str.Single_package_md5_validate_fail
mov ecx, str.12990103
call fcn.00404b10
push 0x5896e4
push 0x68
mov ecx, esi
call fcn.004066c0
xor ebx, ebx
cmp dword [esp + 0xac], edi
jb 0x4062e6
mov eax, dword [esp + 0x98]
push eax
call fcn.00450c1b
add esp, 4
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], 0
cmp dword [esp + 0xc8], edi
jb 0x406319
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.00450c1b
add esp, 4
xor al, al
jmp 0x40636f
cmp dword [esp + 0xac], edi
jb 0x406336
mov edx, dword [esp + 0x98]
push edx
call fcn.00450c1b
add esp, 4
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], 0
mov byte [esp + 0x98], 0
cmp dword [esp + 0xc8], edi
jb 0x40636d
mov eax, dword [esp + 0xb4]
push eax
call fcn.00450c1b
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x1178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1130]
xor ecx, esp
call fcn.00523c4c
mov esp, ebp
pop ebp
ret